Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Catalog images directory does not exist: /demos/catal


jasonketchum

Recommended Posts

I am running version 2.2 and everything works great except for that I get the following error in the Admin area:

 

Error: Catalog images directory does not exist: /demos/catalog/catalog/images/

 

1) I have tried chaning the file permissions on the images directory

2) I have confirmed that this directory does exist

3) I have played with the config file to see if this is set incorrectly (see following:

 

define('DIR_WS_ADMIN', '/demos/admin/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/demos/admin/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/demos/catalog/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/demos/catalog/catalog/'); // absolute path required

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/');

 

Please, does anyone have any ideas?

 

I can upload images via FTP but this will not work for the people using this system.

 

Thanks!

Link to comment
Share on other sites

Ok.... :shock:

 

You have uploaded all files and not just the ones that you needed.

 

You shouldn;t have catalog/catalog or admin/admin

 

go and sort that out and you will solve half your problems.

Although, if you have done much to your site, you will have other problems.

 

Go into your configure.php files and set it correctly, then alter the directory setup to work the same as you set the configure.php files to.

 

You only need /catalog/***** the **** = all other files, like default.php etc.

If you leave this and then build your site you will have loads of problems later if you want to hack it.

 

CC.

Link to comment
Share on other sites

What you would be best doing is taking the main catalog directory out of the first catalog folder.

 

Upload only this, so for instance you want this type of tree, catalog/default.php .ok? You do not need the catalog/catalog directory, only the 2nd catalog is needed.

 

Dont follow the install.php script like it is the all knowing tool.

You still have to input the data as it asks, it does not know all the answers.

So make sure catalog is defined as /catalog/ and admin is defined as /admin/ then your server roots etc...

 

Make sure you know ALL about your server before you start the install, and basically setup your website like so:

 

httpd/catalog/***** again ***** depicts the .php files

&

httpd/admin/*****

 

That is just a demonstration of how it might be setout on your server, you have to take this with a pinch of salt and set it up with your info. All circumstances are different, you just have to have the knowledge of YOUR server to make the install successful.

 

Anyway - enough babbling from me. :crazy:

 

Go and have a go, then come back if you have any problems. :onfire:

 

CC.

Link to comment
Share on other sites

  • 4 years later...

currently having a similar issue. i am getting directories do not exist in the admin area and no product images appear in the catalog.

 

here is my code:

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.####.com/catalog'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.####.com/catalog');
 define('HTTPS_CATALOG_SERVER', 'http://www.####.com/catalog');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'http://www.####.com'); // 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', '/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', '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 our database connection
 define('DB_SERVER', '####);
 define('DB_SERVER_USERNAME', '####');
 define('DB_SERVER_PASSWORD', '####');
 define('DB_DATABASE', '####');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

 

this is the admin/includes/configure.php file. shoul dyou not see any problems, i will post the other configure.php file

Link to comment
Share on other sites

currently having a similar issue. i am getting directories do not exist in the admin area and no product images appear in the catalog.

 

Ok, you see these 3 lines

 

 define('HTTP_SERVER', 'http://www.####.com/catalog'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.####.com/catalog');
 define('HTTPS_CATALOG_SERVER', 'http://www.####.com/catalog');

 

take JUST the word catalog off the end of your url in BOTH configure.php files and it should work correctly

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

I am running version 2.2 and everything works great except for that I get the following error in the Admin area:

Error: Catalog images directory does not exist: /demos/catalog/catalog/images/

1) I have tried chaning the file permissions on the images directory

2) I have confirmed that this directory does exist

3) I have played with the config file to see if this is set incorrectly (see following:

define('DIR_WS_ADMIN', '/demos/admin/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/demos/admin/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/demos/catalog/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/demos/catalog/catalog/'); // absolute path required

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/');

Please, does anyone have any ideas?

I can upload images via FTP but this will not work for the people using this system.

Thanks!

 

Ok, using the following (working code) you should be able to see what you've done wrong and correct it. You'll probably have to do it in both configure.php files.

 

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/vintagecomputerparts/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/vintagecomputerparts/catalog/'); // absolute path required
 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/');

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

currently having a similar issue. i am getting directories do not exist in the admin area and no product images appear in the catalog.

 

here is my code:

 

this is the admin/includes/configure.php file. shoul dyou not see any problems, i will post the other configure.php file

 

Sorry, you should also remove the / between your URL and the word catalog. Oversight.

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

Ok, you see these 3 lines

 

 define('HTTP_SERVER', 'http://www.####.com/catalog'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.####.com/catalog');
 define('HTTPS_CATALOG_SERVER', 'http://www.####.com/catalog');

 

take JUST the word catalog off the end of your url in BOTH configure.php files and it should work correctly

 

But the directory catalog is where my website exists.

Link to comment
Share on other sites

But the directory catalog is where my website exists.

 

I know, but the catalog directory is defined a little further down in that code.

 

Just take my word for it and remove the /catalog from your URLs, ok?

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

I know, but the catalog directory is defined a little further down in that code.

 

Just take my word for it and remove the /catalog from your URLs, ok?

i did try, nothing happened. it actually made it worse...it still reads the site graphics and the stylesheet, just not the products, i will pm you the link

Link to comment
Share on other sites

  • 4 months later...
Ok.... :shock:

You have uploaded all files and not just the ones that you needed.

You shouldn;t have catalog/catalog or admin/admin

go and sort that out and you will solve half your problems.

Although, if you have done much to your site, you will have other problems.

Go into your configure.php files and set it correctly, then alter the directory setup to work the same as you set the configure.php files to.

You only need /catalog/***** the **** = all other files, like default.php etc.

If you leave this and then build your site you will have loads of problems later if you want to hack it.

CC.

I am having a very similar issue as being described here. The images work throughout the site except for where I am adding new ones. When I am trying to add new catalog items I get the following errors:

 

Error: Destination does not exist.

Error Error: Catalog images directory does not exist: /data/sites/<siteurl>/avalon/html/catalog/images/

 

The Items actually get created but the image is a broken link. I have checked the access rights on the images folder and that is not the issue. Any thoughts on why this isn't working? Any help would be greatly appreciated!!

 

Here is my configure.php

 

define('HTTP_SERVER', 'http://<siteurl>'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://<siteurl>'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '<siteurl>');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

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', '/data/sites/<siteurl>/avalon/html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

  • 1 month later...

This is precisely my problem--and have yet to fix it.

 

I am having a very similar issue as being described here. The images work throughout the site except for where I am adding new ones. When I am trying to add new catalog items I get the following errors:

 

Error: Destination does not exist.

Error Error: Catalog images directory does not exist: /data/sites/<siteurl>/avalon/html/catalog/images/

 

The Items actually get created but the image is a broken link. I have checked the access rights on the images folder and that is not the issue. Any thoughts on why this isn't working? Any help would be greatly appreciated!!

Link to comment
Share on other sites

  • 1 month later...
This is precisely my problem--and have yet to fix it.

 

I had this problem too, the solution was in - catalog\admin\includes\configure.php

 

I had to chage the path on the following lines because my host had changed it.

 

define('DIR_FS_DOCUMENT_ROOT', '/MYPATH/'); // where the pages are located on the server

 

define('DIR_FS_ADMIN', '/MYPATH/'); // absolute pate required

 

define('DIR_FS_CATALOG', '/MYPATH/'); // absolute path required

 

Maybe the cause of your problem is not the same as mine, but I hope that at least helps you to know which lines might need fixing.

 

Carolyn

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...