milauskas Posted July 26, 2005 Share Posted July 26, 2005 I just got past one hurdle, now I find I've screwed someting else up. Everything seemed to be working and my catalog pages displayed perfectly (all images were there). Hwoever, when trying to upload product images I keep getting the following at the top of the page in the admin area: Error: Catalog images directory does not exist: catalog/images/ I've tried to edit the admin/configue.php file several times and now I can't remember what was threre originally. I installed osC by first copying the catalog folder to the root directory. Admin is inside the catalog folder. How do I get rid of the error and be able to upload product images? Thanks for any help! I'm up against a brick wall here. Here's my current "mess" in the admin/configure.php file: define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', 'catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', '/catalog/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . '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 . '/catalog/images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2005 Share Posted July 27, 2005 Tried creating an images directory? If it is not there then there is quite a lot missing! But it has no config settings in that directory, not to start with that I can remember so try just copying the directory from the OSC set up file into the root of your web, usually under the catalog directory Charlie Link to comment Share on other sites More sharing options...
milauskas Posted July 27, 2005 Author Share Posted July 27, 2005 Hi Charlie, There is an images directory. That's what's driving me crazy. Do I need to create a new one? I wouldn't think so. Mike Tried creating an images directory? If it is not there then there is quite a lot missing! But it has no config settings in that directory, not to start with that I can remember so try just copying the directory from the OSC set up file into the root of your web, usually under the catalog directory Charlie <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Enzo_UK Posted July 27, 2005 Share Posted July 27, 2005 define('DIR_WS_IMAGES', '/catalog/images/'); I dont think you need the leading slash, and dont think you need the catalog either. Should just be images/ Its possibly trying to save the images to www.yoururl.com/catalog/catalog/images/ Link to comment Share on other sites More sharing options...
milauskas Posted July 27, 2005 Author Share Posted July 27, 2005 Thanks, Enzo (& Charlie, too). Here's how stupid I was. It took me a couple days to notice that the catalog/includes/configure.php file and the catalog/admin/includes.php file were EXACTLY the same. I copied one of them to the wrong directory! I can now see all images on my catalog pages. However, in the admin section, I am still getting the error: Error: Catalog images directory does not exist: /catalog/images/ I dont think you need the leading slash, and dont think you need the catalog either. Should just be images/ Its possibly trying to save the images to www.yoururl.com/catalog/catalog/images/ <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
♥Vger Posted July 27, 2005 Share Posted July 27, 2005 define('HTTP_SERVER', 'http://www.yourdomain.com'); define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com'); define('HTTPS_CATALOG_SERVER', ''); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); Vger Link to comment Share on other sites More sharing options...
milauskas Posted July 27, 2005 Author Share Posted July 27, 2005 Thanks again, Vger. I *did* manage to solve it without putting the absolute path in the HTTP_SERVER or HTTP_CATALOG_SERVER lines. It seems to work w/out that. However, what did eliminate the error was substituting the absolute path to my files for the $DOCUMENT_ROOT variable. So, in my case , I changed this: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); TO THIS: define('DIR_FS_DOCUMENT_ROOT', D:/domains/mydomain.com/www'); I'm off to do battle with the NEXT problem. Thanks all! define('HTTP_SERVER', 'http://www.yourdomain.com');define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com'); define('HTTPS_CATALOG_SERVER', ''); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); Vger <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.