11seconds Posted November 4, 2010 Posted November 4, 2010 Hi, I`ve been looking for sollution to my problem but nothing helped me. I reinstaled oscommerce on lunarpaqes cause I made some mess but shop was not developed yet so I deleted it and install again. Before pics were appering but now they don`t. I guess it`s about some paths I can`t figure out. I heared it`s about configure.php in admin and includes, can anyone look at mine and tell me what do I do wrong? Admin/includes configure.php file: <?php define('HTTP_SERVER', 'http://www.11seconds.pl'); define('HTTP_CATALOG_SERVER', 'http://www.11seconds.pl'); define('HTTPS_CATALOG_SERVER', 'http://www.11seconds.pl'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/gardo2/public_html/11seconds/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/gardo2/public_html/11seconds/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/gardo2/public_html/11seconds/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*******'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Includes configure.php file: <?php define('HTTP_SERVER', 'http://www.11seconds.pl'); define('HTTPS_SERVER', 'http://www.11seconds.pl'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.11seconds.pl'); define('HTTPS_COOKIE_DOMAIN', 'www.11seconds.pl'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/gardo2/public_html/11seconds/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '********'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', '*********'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Please help me, thank you!
Guest Posted November 4, 2010 Posted November 4, 2010 Lukasz, The configure files appear to be correct. Check your FTP program to ensure it is set to auto transfer type. Some FTP programs are set to ASCII transfer by default, images require BINARY transfer mode. Uploading in the wrong type will corrupt the images. Chris
11seconds Posted November 4, 2010 Author Posted November 4, 2010 Thank you Chris. My ftp is set to binary type so everything should be ok with transfering by ftp. Do you have any other ideas what could be the problem?
germ Posted November 4, 2010 Posted November 4, 2010 If there is a .htaccess file in the images folder rename it to text.htaccess If there is none or that doesn't help do the same with the .htaccess file in the root folder (I know for a fact there is one there). Something else you need to be aware of... Visit the link below: How to Secure Your Site Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable. It's easier to do a few security fixes now than to clean up a hacked store later. And if you don't secure the admin your shop will be hacked. It's just a question of when... :o If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.