Forums / Templates, Stylesheets, Page Layout / Big Problem - Cart is gone!

Big Problem - Cart is gone!

Locked

Started by airspeed on 15 Oct 2007, 8:22 PM · Views: 1,745

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
15 Oct 2007, 8:22 PM
#1
airspeed avatar

airspeed

New Zenner

Join Date:
Oct 2007
Location:
Ontario
Posts:
15
Plugin Contributions:
0

Big Problem - Cart is gone!

Well I'm really over my head now...

Things were working fine today, until I decided to try to go into my godaddy account, and forward my address to point at https://www.airspeed-x.com/catalog and then mask it so it would only show https://www.airspeed-x.com

I realized this isn't the way to do it, so I unforwarded and unmasked in godaddy. Now, when I try to access my cart the normal way (IE: https://www.airspeed-x.com/catalog ) I get this page: nddbc.html

I know how to move directories now so that my cart is the actual index of the site (public_html), but I can't even access my admin page for Zen Cart. I have already uploaded my website backup to the server, but nothing has changed...

Hopefully I'm making this situation clear...

Any help would be appreciated!

15 Oct 2007, 8:36 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Big Problem - Cart is gone!

That page is telling you that the cart can not connect to the database - Please post your includes/configure.php - minus your password -

BTW - have you read the other posts about GoDaddy?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

15 Oct 2007, 8:38 PM
#3
airspeed avatar

airspeed

New Zenner

Join Date:
Oct 2007
Location:
Ontario
Posts:
15
Plugin Contributions:
0

Re: Big Problem - Cart is gone!

I'll post the configure.php

I did read some posts, but couldn't find anything specific. I'm sure something is out there though, its just a matter of finding it.

15 Oct 2007, 8:40 PM
#4
airspeed avatar

airspeed

New Zenner

Join Date:
Oct 2007
Location:
Ontario
Posts:
15
Plugin Contributions:
0

Re: Big Problem - Cart is gone!

Edit: 1 second, I may have figured it out. Thanks Kim! I'll let you know.

Edit #2: Ok, I have my cart back. I also changed my password today, so I had to manuall change it in the configure.php file. Now I just need to fix the catalog/admin side of it... Should be able to figure it out. Thanks again!

15 Oct 2007, 9:20 PM
#5
airspeed avatar

airspeed

New Zenner

Join Date:
Oct 2007
Location:
Ontario
Posts:
15
Plugin Contributions:
0

Re: Big Problem - Cart is gone!

Well, I thought I could fix the admin side of things, but apparently I need some help. Didn't think changing a password would cause this much of a problem.

My admin/includes/configure.php :

define('HTTP_SERVER', 'http://airspeed-x.com');
  define('HTTPS_SERVER', 'https://airspeed-x.com');
  define('HTTP_CATALOG_SERVER', 'http://airspeed-x.com');
  define('HTTPS_CATALOG_SERVER', 'https://airspeed-x.com');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/catalog/admin/');
  define('DIR_WS_CATALOG', '/catalog/');
  define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/catalog/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home2/airspeed/public_html/catalog/admin/');
  define('DIR_FS_CATALOG', '/home2/airspeed/public_html/catalog/');

  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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'xxxx- CURRENT NAME');
  define('DB_SERVER_PASSWORD', 'xxxx - CURRENT PASS');
  define('DB_DATABASE', 'airspeed_store');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home2/airspeed/public_html/catalog/cache');

I get the dreaded error when I try to log in to the admin:

0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I have checked and triple checked that everything matches up (User name, password, database name, directories...) Can't find the problem.

15 Oct 2007, 9:56 PM
#6
airspeed avatar

airspeed

New Zenner

Join Date:
Oct 2007
Location:
Ontario
Posts:
15
Plugin Contributions:
0

Re: Big Problem - Cart is gone!

Problem Fixed!

For others with this problem - make sure you upload the right file to the right directory; and don't do too much work in one day!