catalog images directory does not exist??

mouthsuit <[email protected]> 6 Sep 2003 15:23:16 -0000
Newsgroups gmane.comp.web.oscommerce.tips
Message-ID <a2ad94c5366d28644654413a2e36649f@osCommerce-Forums>
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=225259#225259
----------------------------------------------------------------

I am SO very close to getting osc up and running I can taste it....

The catalog works. The admin section works. However, the "Catalog images directory does not exist:" error appears at the top of the page when I'm in the admin/catalog section. I think I see what it's doing, I'm just not sure where to fix it.

Instead of looking for images at www.mydomain.com/catalog/images, it's looking for them at www.mydomain.com/admin/catalog/images. I've been playing with the admin/includs/configure.php, and I've changed a bunch of stuff, but I haven't hit the right one yet. It looks like it's concatenating DIR_FS_DOCUMENT_ROOT + DIR_WS_ADMIN + DIR_WS_CATALOG + DIR_WS_IMAGES instead of just DIR_FS_DOCUMENT_ROOT + DIR_WS_CATALOG + DIR_WS_IMAGES. 
I have a feeling it's something to do with DOCUMENT_ROOT, but nothing I've changed that to has worked. For example, if D_R is originally [i]place1[/i], clicking on the properties of an image gives me

http://www.mydomain.com/admin/place1.

Changing D_R to [i]place2[/i] gives me

http://www.mydomain.com/admin/place2

So no matter what I do, it just appends it to http://www.mydomain.com/admin.
Here's the admin configure.php:

[code]
  define('HTTP_SERVER', 'http://www.draftfreak.com/bulldog'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
  define('HTTP_CATALOG_SERVER', 'http://www.draftfreak.com/bulldog/catalog');
  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', '/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/');
[/code]

I'm sure it's something simple, but I just can't look at the code anymore right now.  :shock:  

Thanks.
jeff[/i][/code]