Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Directories do not exist errors in Admin......


trap

Recommended Posts

Dear All

 

I have installed a couple of oscommerce sites now all have gone to plan, however the current site is causing me grief and I am at loss to explain why.

 

In admin I am getting the following errors:

 

Database Backup Manager: Error: Backup directory does not exist. Please set this in configure.php.

 

Categories/products section: Error: Catalog images directory does not exist: /home/mysite.com/public_html/catalog/images/

 

I assume because of the above error with the images this will be why I have no product images and cannot upload any within the products error.

 

I have gone over both the config files and I cannot see where I have gone wrong. I have just installed this same cart on another site and it works fine. All the permissions are set correctly and the images and backup directory are definately there (checked using ftp). I also get the same error with downloads file however if I disable the download section all is well. Not the best solution but at this time downloads are not required.

 

I Would really appreciate any suggestions or help to correct this as this is driving me nuts. :angry:

 

Unfortunately I broke my own rule and didn't backup this site and have since completed some modifications so I really don't want to start again if I can help it by reinstalling the cart on this site.

 

Thanking you in advance

 

Trap

Link to comment
Share on other sites

per the knowledge base installation, you must create the backups directory and set the file permissions to 777 (only the path is listed in admin/includes/configure.php).

 

for the images, that also is in the knowledge base installation (images needs 777).

 

i would suggest going thru the knowledge base, there are many things in there which you would probably ask if not read.

Link to comment
Share on other sites

Thank you Mibble for your quick response however I have triple checked all the permissions and they are all set to 777. The folders are definately there with all the correct permissions.

 

Would you have any other suggestions that might help.

 

Thanks

 

Trap

Link to comment
Share on other sites

Dear Mibble

 

Please find below the configure.php file as requested. This is the admin/includes/configure.php Hope this is the file you suggested.

 

Thank you for your assistance and look forward to your response.

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

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

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

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/mysite.com/public_html/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/mysite.com/public_html/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/mysite.com/public_html/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/');

 

Regards

 

Trap

Link to comment
Share on other sites

I have posted below the configure.php file from the catalog to try and shed some light on this problem.

 

One other thing, this is the first time on a different server using Cpanel. Might there be some setting different with this server than the others which would affect why the images folder etc are not showing up in the admin section even though they are definately in the directory (ftp) with all the right permissions.

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://www.mysite.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.mysite.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_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', '/home/mysite.com/public_html/catalog/');

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

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

 

Thank you for your assistance

 

Trap

Link to comment
Share on other sites

Wohoooo.......Fixed the problem.......For anyone else that changes from a Plesk environment to CPanel here you go......

 

In the Configure files you must have username not the domain name as your path for DIR_FS_Document_root etc eg

 

/home/username/public_html

Hope this helps

 

Cheers :P

 

Trap

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...