rstevenson Posted January 3, 2005 Posted January 3, 2005 Hi all, In the two config files - one in catalog and one in admin - there are lots of paths defined. Some things aren't working for me. I'd like to learn as much as I can about osc, so if you can just offer me a few hints, I'll figure it out. Specifically... 1. In these two statements, what's the meaning of WS and FS? define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); 2. In which config file should I define the path to my catalog images? Both? I see one define called DIR_FS_CATALOG_IMAGES - is that the one? (It's in admin/config.php) I see another called DIR_WS_IMAGES - it's in both config files. 3. If I need to define a path in catalog/admin/config.php file, and the location I'm defining is outside the admin folder - say catalog/images/imgs_lg - how do I write the path? Is it like HTML, where I can move back up the path using dots, as in ../images/imgs_lg? 4. If I create both large and thumbnail images for every product, does osc expect them all to be in one images folder? Or can I create sub-folders? If the latter, do I gang up the folders in the define function? Something like... define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . '../images/imgs_lg', '../images/imgs_sm'); As you can probably guess from the above, I'm getting the old "Error: Catalog images directory does not exist: /catalog/images/". Of course, the directory does exist. Thanks for any help you can offer. Rob
♥Vger Posted January 3, 2005 Posted January 3, 2005 Hi all, In the two config files - one in catalog and one in admin - there are lots of paths defined. Some things aren't working for me. I'd like to learn as much as I can about osc, so if you can just offer me a few hints, I'll figure it out. Specifically... 1. In these two statements, what's the meaning of WS and FS? define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); One stands for Web Server, and one stands for File Server. 2. In which config file should I define the path to my catalog images? Both? I see one define called DIR_FS_CATALOG_IMAGES - is that the one? (It's in admin/config.php) I see another called DIR_WS_IMAGES - it's in both config files. the file you should be working on is admin/includes/configure.php. You shoudl define the path to the 'images' folder in both catalog/includes/configure.php and catalog/admin/includes/configure.php (remove the 'catalog' if you have installed in the root directory of the web server). The image path is images/ 3. If I need to define a path in catalog/admin/config.php file, and the location I'm defining is outside the admin folder - say catalog/images/imgs_lg - how do I write the path? Is it like HTML, where I can move back up the path using dots, as in ../images/imgs_lg? When you are working in 'admin' the only images you see are from catalog/admin/images folder. When you are working in 'catalog' the only images you see are from catalog/images 4. If I create both large and thumbnail images for every product, does osc expect them all to be in one images folder? Or can I create sub-folders? If the latter, do I gang up the folders in the define function? Something like... define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . '../images/imgs_lg', '../images/imgs_sm'); No. If you want to use a special thumbnail contribution you will find various options in Contributions (link at top of page) As you can probably guess from the above, I'm getting the old "Error: Catalog images directory does not exist: /catalog/images/". Of course, the directory does exist. Set file permission on 'images' to 755 Thanks for any help you can offer. Rob <{POST_SNAPBACK}> Vger
rstevenson Posted January 3, 2005 Author Posted January 3, 2005 Thanks vger, Unfortunately, I already have everything defined as you suggest. The images folder is 755, the path to it is defined in both catalog/includes/configure.php and catalog/admin/includes/configure.php as 'images/'. But I continue to get "Error: Catalog images directory does not exist: /catalog/images". Also, uploading an image for a new product has the effect of making the image disappear - it's nowhere to be found on the server when I FTP in to look for it and dosen't appear in the catalog.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.