Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation Problems, Error: Catalog images directory does not exist: /catalog/images/


hawc2k

Recommended Posts

Posted

I am a newbie to PHP and Oscommerce but I have some server side scripting experience. I'm having problems with a new installation of OsCommerce 2.2. I have a Hsphere Windows hosting plan that includes OsCommerce. I've gone thru the installation using the Hsphere setup and the default shopping cart is available and works.

 

The problem comes when I log in and try to add new catagories and products in the admin area. While the default images show up in the shopping cart, they do not show up in the admin area and I receive and error on the catalog pages. All the catagories or product images show IMAGE DOES NOT EXIST category_hardware.gif on the left side of the admin panel.

 

The error is:

 

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

 

I've searched for a resolution for this online and in the various forums but can't find the fix or found it but can't get it to work. This looks like a path issue but everything I've tried fails. I've tried adding variations of the document root paths and server paths in the /catalog/configure.php, /admin/includes/configure.php, and /catalog/includes/configure.php files. I can see some of the changes I make to these files, but this error never changes. I really think I'm simply using the wrong define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/'); setting but nothing seems to work.

 

I tried to grab the doc_root from the server info page but it says no value so I echoed the realpath and got the path, /hshome/jonlc/thedomain.com/ . Could it be that PHP is installed incorrectly because of this? Any help would be greatly appreciated. Thanks!

 

Here are the configure.php files minus the DB info:

 

/admin/includes/configure.php

 

define('DIR_FS_ADMIN', $DOCUMENT_ROOT.'/admin/');

define('DIR_FS_CATALOG', $DOCUMENT_ROOT.'/catalog/');

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'user1.test51.psoft');

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

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

 

// define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/user1/user1.test51.psoft/');

 

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

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/hshome/jonlc/thedomain.com/');

define('DIR_FS_LOGS', '../admin/logs');

define('ENABLE_SSL', 0);

 

/catalog/configure.php

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.thedomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.thedomaincom');

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', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

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

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

Posted
I am a newbie to PHP and Oscommerce but I have some server side scripting experience. I'm having problems with a new installation of OsCommerce 2.2. I have a Hsphere Windows hosting plan that includes OsCommerce. I've gone thru the installation using the Hsphere setup and the default shopping cart is available and works.

 

The problem comes when I log in and try to add new catagories and products in the admin area. While the default images show up in the shopping cart, they do not show up in the admin area and I receive and error on the catalog pages. All the catagories or product images show IMAGE DOES NOT EXIST category_hardware.gif on the left side of the admin panel.

 

The error is:

 

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

 

I've searched for a resolution for this online and in the various forums but can't find the fix or found it but can't get it to work. This looks like a path issue but everything I've tried fails. I've tried adding variations of the document root paths and server paths in the /catalog/configure.php, /admin/includes/configure.php, and /catalog/includes/configure.php files. I can see some of the changes I make to these files, but this error never changes. I really think I'm simply using the wrong define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/'); setting but nothing seems to work.

 

I tried to grab the doc_root from the server info page but it says no value so I echoed the realpath and got the path, /hshome/jonlc/thedomain.com/ . Could it be that PHP is installed incorrectly because of this? Any help would be greatly appreciated. Thanks!

 

Here are the configure.php files minus the DB info:

 

/admin/includes/configure.php

 

define('DIR_FS_ADMIN', $DOCUMENT_ROOT.'/admin/');

define('DIR_FS_CATALOG', $DOCUMENT_ROOT.'/catalog/');

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'user1.test51.psoft');

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

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

 

// define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/user1/user1.test51.psoft/');

 

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

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/hshome/jonlc/thedomain.com/');

define('DIR_FS_LOGS', '../admin/logs');

define('ENABLE_SSL', 0);

 

/catalog/configure.php

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.thedomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.thedomaincom');

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', '/catalog/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

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

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

Amongst other things (such as not having SSL), you don't need define('DIR_WS_IMAGES', '/catalog/images/');

try stuff like

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

Posted
Amongst other things (such as not having SSL), you don't need define('DIR_WS_IMAGES', '/catalog/images/');

try stuff like

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

 

Thanks for the reply Coopco! I tried these settings and it still does not work? Any other suggestions. Could it be the issue that the Server Info page shows no doc_root? Thanks!

Archived

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

×
×
  • Create New...