Matt H Posted April 21, 2006 Posted April 21, 2006 Hi I have just installed osCommerce and everything seems to work fine. I have entered the admin panel and gone to catalog and I get the following error Catalog images directory does not exist: /home/httpd/vhosts/kernowbodyboarding.co.uk/httpdocs/catalog/catalog/images/ The image directory is actually /home/httpd/vhosts/kernowbodyboarding.co.uk/httpdocs/catalog/images/ Why is it looking for a directory is not there? I am thinking it must be something to do with the categories.php file telling it to look in the wrong place? When I view my store www.kernowbodyboarding.co.uk/catalog all images have the path http://kernowbodyboarding.co.uk/catalog/images/ Can someone help explain why it is looking for this catalog/catalog/images directory and how to rectify this. Regards Matt
ozcsys Posted April 21, 2006 Posted April 21, 2006 Hi I have just installed osCommerce and everything seems to work fine. I have entered the admin panel and gone to catalog and I get the following error Catalog images directory does not exist: /home/httpd/vhosts/kernowbodyboarding.co.uk/httpdocs/catalog/catalog/images/ The image directory is actually /home/httpd/vhosts/kernowbodyboarding.co.uk/httpdocs/catalog/images/ Why is it looking for a directory is not there? I am thinking it must be something to do with the categories.php file telling it to look in the wrong place? When I view my store www.kernowbodyboarding.co.uk/catalog all images have the path http://kernowbodyboarding.co.uk/catalog/images/ Can someone help explain why it is looking for this catalog/catalog/images directory and how to rectify this. Regards Matt If osC is looking in the wrong location then you need to edit your configure.php file and corret the path. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Matt H Posted April 21, 2006 Author Posted April 21, 2006 If osC is looking in the wrong location then you need to edit your configure.php file and corret the path. Could you give me some idea what I need to change it to? Here is my catalog/includes/configure.php file as it stands <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://kernowbodyboarding.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://kernowbodyboarding.co.uk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'kernowbodyboarding.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'kernowbodyboarding.co.uk'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
ozcsys Posted April 21, 2006 Posted April 21, 2006 Post your admin/catalog/includes/configure.php The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Matt H Posted April 21, 2006 Author Posted April 21, 2006 Post your admin/catalog/includes/configure.php Here is my catalog/admin/includes/configure.php file <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://kernowbodyboarding.co.uk'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://kernowbodyboarding.co.uk'); define('HTTPS_CATALOG_SERVER', 'http://kernowbodyboarding.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/kernowbodyboarding.co.uk/httpdocs'); // where your pages are located on the server. define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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/'); Thanks
ozcsys Posted April 21, 2006 Posted April 21, 2006 Try changing define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/catalog/'); To define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Matt H Posted April 21, 2006 Author Posted April 21, 2006 Try changing define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/catalog/'); To define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); That seems to have done it! Thank you ever so much, any idea why it did this? Or just one of lifes little mysteries? Thanks again, I can sleep tonight! Cheers Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.