Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Backup directory does not exist.


IronMac

Recommended Posts

Posted

I can see that this topic has been almost done to death but I have done a search and nothing is bang-on enough to my problem. I am trying to help a friend move from her current host (We're both absolute newbies to this sort of stuff but I have a DSL connection and she only has dial-up) and it turns out that she doesn't have any backup set up.

 

I go to the control panel and get the Error: Backup Directory does not exist. The title beneath that is 'Backup Directory: /hsphere/local/home/xxxxxxxxx/xxxxxxxxx.com/catalog/admin/backups/'.

 

Using an FTP program, I check in her root directory / then folder public_html. Inside, there is a folder called 'admin' and it has a folder called 'backups'. Permissions on that folder is '777'.

 

 

Inside the 'admin' folder is also an 'includes' folder. It contains a 'configure.php' document which does have the following:

 

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

 

So, I am not sure why it's not working? Any suggestions would be greatly appreciated. Thanks!

Posted

You say there is a backups directory in public_html/admin but the code is looking at catalog/admin/backups/ so there is a mistake in your setup, most likely the configure.php file or just that the admin directory is in the wrong place.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
You say there is a backups directory in public_html/admin but the code is looking at catalog/admin/backups/ so there is a mistake in your setup, most likely the configure.php file or just that the admin directory is in the wrong place.

 

Jack

 

Yes, there is a backups folder in public_html/admin. I've seen other posts talk about 'catalog' but I don't see that directory (not sure if that is the right term or not).

 

I go to root '/' and here is the list of folders(?):

 

etc

mail

public_ftp

public_html

tmp

www

 

The 'www' folder has a little arrow pointing to it.

 

Where would I find out where the error is or even know what to look for? Thanks!

Posted

If the catalog directory doesn't exist then the problem is in the admin/includes/configure.php file. Search that file for use of catalog (lower case only) and remove it. If you are still having problems, post that file here after removing the sensitive parts.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
If the catalog directory doesn't exist then the problem is in the admin/includes/configure.php file. Search that file for use of catalog (lower case only) and remove it. If you are still having problems, post that file here after removing the sensitive parts.

 

Jack

 

Ok, I don't see the use of 'catalog' in lower case. Maybe it's just me but here is the configure.php file:

 

<?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://xxxxxxxxx.com'); // eg, http://localhost - should not be empty for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://xxxxxxxxx.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/xxxxxx/public_html/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/xxxxxx/public_html/admin/'); // absolute pate required

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'xxxxxx_osc1');

define('DB_SERVER_PASSWORD', 'C0PSqR1xorfX');

define('DB_DATABASE', 'xxxxxx_osc1');

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

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

?>

Posted
Be sure you don't have a configure file in the admin/local directory. If not, then you need to ask your host to look at it since it seems there is a path problem on the server.

 

Jack

 

Ok..I'm sorry but that went right over my head. I think she's also hesitant to ask her host since she is leaving them. Her site once went down for over a month and there were no backups (which, in retrospect, is pretty obvious why). She lost everything.

 

Her site designer is also her host.

Posted

Oh man..I feel like an idiot!!!

 

Please ignore all of the above for now!!! Long story and a very embarassing one! Let me try to figure this out and will come back with results later!!!

Posted

Ok, a great big thanks to Jack for taking the time to look over my problem. Despite my stupidity, I have solved the problem and managed to download a 388kb sql file to my desktop. Yay!!!

 

Now, all I have to figure out is to get this file uploaded to my friend's new OS Commerce installation on her new host.

Archived

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

×
×
  • Create New...