Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog images directory does not exist:


kayotics

Recommended Posts

Posted

I switched over servers and now i get this error msg "Catalog images directory does not exist:" it list the directory that i used to have the images in but since then i have not been able to switch it.. Does this mean I need to reinstall the whole thing or is ther a basic way to just make that point to a different directory. I've looked all over the admin section and it doesn't seem to have an option for it. Can anyone answer this one for me it would be greatly appreciated.

 

Thanks,

  • 3 weeks later...
Posted

I'm having the same problem. I've played around with the configue.php file in the admin/includes directory but still can't get it to work. Here's what's listed in that file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.indyprops.com');

define('HTTP_CATALOG_SERVER', 'http://www.indyprops.com');

define('HTTPS_CATALOG_SERVER', 'http://www.indyprops.com');

define('ENABLE_SSL_CATALOG', true); // secure webserver for

 

catalog module

define('DIR_FS_DOCUMENT_ROOT', '/osCommerce/catalog/'); // where

 

the pages are located on the server

define('DIR_WS_ADMIN', '/osCommerce/catalog/admin/'); //

 

absolute path required

define('DIR_FS_ADMIN', '/osCommerce/catalog/admin/'); // absolute

 

pate required

define('DIR_WS_CATALOG', '/osCommerce/catalog/'); //

 

absolute path required

define('DIR_FS_CATALOG', '/osCommerce/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/');

 

Where am I going wrong? The correct directory is http://www.indyprops.com/osCommerce/catalog/images/

 

Thanks,

Indy

Posted

Yes, I've checked through the configure.php file and the directories all seem correct. That's what I can't figure out. The administration software is telling me that the directory does not exist when I know that it does. >_<

 

Kind regards,

Indy

Posted

And the settings in the other configuration file in include/languages are?

 

I'ld also use the link provided by Coopco to check every step has been completed.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Yes, I've checked through the configure.php file and the directories all seem correct. That's what I can't figure out. The administration software is telling me that the directory does not exist when I know that it does. >_<

 

Kind regards,

Indy

Have you tried using the absolute paths where the file says to?

Posted
Yes, I typed out the full address and it gave me the message that "http://www.indyprops.com/osCommerce/catalog/images/" does not exist... which, of course, it does. Hmmm...

 

I'm transferring my entire osCommerce shop to a different server right now, so I'll have to fix these things up there anyway. Perhaps I'll have better luck this time.

 

Kind regards,

Indy

Looks ok now.

Posted

It's very strange... I've just added a new item to my shop (the first since the server change) and it still won't recognize the new directory. If you visit the main page: http://www.indyprops.com/osCommerce/catalog/index.php you'll notice that in the new items box at the bottom, there is a broken image for the new item (because it wouldn't let me upload the image). Yet, if you right click on the box, it has the correct directory listed. Right-click on any of the other thumbnails and you'll see that the images are indeed in that directory... yet the osCommerce admin won't recognize it to let me upload thumbnails for my new items. Any ideas? :blink:

 

Kind regards,

Indy

Posted
It's very strange... I've just added a new item to my shop (the first since the server change) and it still won't recognize the new directory. If you visit the main page: http://www.indyprops.com/osCommerce/catalog/index.php you'll notice that in the new items box at the bottom, there is a broken image for the new item (because it wouldn't let me upload the image). Yet, if you right click on the box, it has the correct directory listed. Right-click on any of the other thumbnails and you'll see that the images are indeed in that directory... yet the osCommerce admin won't recognize it to let me upload thumbnails for my new items. Any ideas? :blink:

 

Kind regards,

Indy

You seem to be using two images (mini and main).

 

Are you uploading the files via admin catalogue when you put the new product into your store.

Posted

Yes, the "mini" image I only use for the thumbnail. This is the image that is normally uploaded via the admin catalogue. The rest of the page the "main" and other detail photos are part of the html entered into the description portion of the "add product" feature of the admin catalogue. It is the automatical uploading of the product image (my "mini" image) that isn't working because the admin is not recognizing my image directory.

 

Kind regards,

Indy

Posted
Still can't get this to work. I've added three new items to my site since moving servers, and so it is really obvious now that the new files aren't uploading:

 

http://www.indyprops.com/osCommerce/catalog

 

Any ideas?

 

Kind regards,

Magnoli

 

Hi Magnoli,

 

First off osC is designed to be installed as http://www.indyprops.com/catalog and you have it in a subfolder of osCommerce, so that changes the structure. If you could move the files to the root folder so you will have a structure such as - public_html > catalog then it is a simple fix in your configure.php files.

 

admin>includes>configure.php

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', 'http://indyprops.com');

define('HTTPS_CATALOG_SERVER', 'https://secure.hostname.com/~username');

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', '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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'databasename');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

catalog>includes>configure.php

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://indyprops.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.hostname.com/~username'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'indyprops.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.hostname.com');

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

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'databasename');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

The only other thing I can think of... is to try editing the lines of code regarding the image folder.

From this -

define('DIR_WS_IMAGES', 'images/');

to this -

define('DIR_WS_IMAGES', 'osCommerce/catalog/images/');

and this -

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

to this -

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'osCommerce/catalog/images/');

or possibly without the osCommerce and just catalog. If that fixes the image problem then you might encounter other problems as well.

 

Good luck!

 

:thumbsup:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Well, I've moved my website to www.magnoliclothiers.com/catalog (removed that pesky oscommerce directory)... but the images are still not working. I've also got a php session error I don't know how to fix. I've contacted the help folks, but if any of you guys have got some other ideas in the mean time, please let me know...

 

Kind regards,

Indy

Posted

Hey Indy,

 

When you insert the images from the admin panel, where does the contribution as that you put them on the server?

 

Reason I ask is because the images that are working on the product_info.php page point to -

http://www.indyprops.com/osCommerce/catalo...ages/clothiers/

 

But the broken image links point to - http://magnoliclothiers.com/catalog/images/ without any image files. That leads me to believe that either something isn't set correctly in your configure.php files or something with the contribution.

 

Did you double check your configure.php files with the code I posted earlier? The reason I suggest looking at those two files is because if you are linking while uploading the images to the images folder then they should display according to the code in the configure.php file. Some code is either breaking that link or placing the images somewhere else on the server during upload (contribution?).

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

You'll actually notice three types of images on my site:

 

http://www.indyprops.com/osC...ages/clothiers/ files are the large ones that are posted within my html description of each item.

 

http://www.indyprops.com/osCommerce/catalog/images/ files are the thumbnails that are automatically uploaded via the osCommerce admin control panel when adding new items BEFORE I experienced this problem.

 

http://www.magnoliclothiers.com/images/ files are the broken thumbnails that the osCommerce admin panel would not allow me to upload when adding new items because of the directory "that does not exist".

 

I'll slowly be changing all of the indyprops.com links to magnoliclothiers.com ones eventually, but the main problem is sorting out this new image error. I checked the configure.php files and they all seem to have all the correct information. The fact that the broken images point to the correct directory (that does exist) shows to me that the configure.php is correct.

 

Kind regards,

Indy

Archived

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

×
×
  • Create New...