Zen Cart Logo
Forums / Other Business Topics / Moved cart to new folder, messed something up

Moved cart to new folder, messed something up

Views: 109

Results 1 to 10 of 10
5 Mar 2013, 5:21 PM
#1
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Moved cart to new folder, messed something up

So I moved my zencart to a new folder and as I knew would happen, I messed something up. I think I might know but not sure.

This is the error I'm getting when trying to load zencart from new location.

Warning: require(DIR_WS_TEMPLATEStemplate_default/common/html_header.php) [function.require]: failed to open stream: No such file or directory in /home/content/a/v/e/avenuebeads/html/old/index.php on line 43

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_TEMPLATEStemplate_default/common/html_header.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/a/v/e/avenuebeads/html/old/index.php on line 43

I can't get into admin or anything and I forget what version of zencart I have...sorry :(

What I think I did was changed the session cache address to the wrong thing but I'm totally locked out so can't play around with that to find out.

I'm also not sure if i'm structuring the file structure correct in my config.php 's does that "/html/" have to be in there?

Thanks in advance.

5 Mar 2013, 5:31 PM
#2
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Re: Moved cart to new folder, messed something up

Here's one of the config files for a reference. I'm sure I missed something glaringly obvious.

<?php
//
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // Main webserver: eg, http://localhost - should not be empty for productive servers
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   */
  define('HTTP_SERVER', 'http://www.avenuebeads.com');
  define('HTTPS_SERVER', 'https://www.avenuebeads.com');
  define('HTTP_CATALOG_SERVER', 'http://www.avenuebeads.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.avenuebeads.com');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  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', '/html/old/joba/');
  define('DIR_WS_CATALOG', '/html/old/');
  define('DIR_WS_HTTPS_ADMIN', '/html/old/joba/');
  define('DIR_WS_HTTPS_CATALOG', '/html/old/');

  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', '/home/content/a/v/e/avenuebeads/html/old/joba/');
  define('DIR_FS_CATALOG', '/home/content/a/v/e/avenuebeads/html/old/');

  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', 'h50mysql21.secureserver.net');
  define('DB_SERVER_USERNAME', '.......');
  define('DB_SERVER_PASSWORD', '......');
  define('DB_DATABASE', '........');
  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', '/home/content/a/v/e/avenuebeads/html/old/cache/');

?>
5 Mar 2013, 5:46 PM
#3
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Re: Moved cart to new folder, messed something up

Ooops forgot to post what the fix cache key returned.

Cache Settings Synchronization Tool
Recommendations
Possible appropriate cache directory for your site is: /home/content/a/v/e/avenuebeads/html/old/cache

Actual Information
Read DIR_FS_SQL_CACHE from includes/configure.php: /home/content/a/v/e/avenuebeads/html/old/cache/
Found SESSION_WRITE_DIRECTORY in database: /home/content/a/v/e/avenuebeads/old

Now synchronizing...
Database now contains the following SESSION_WRITE_DIRECTORY: /home/content/a/v/e/avenuebeads/html/old/cache/

Finished.
5 Mar 2013, 10:18 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Moved cart to new folder, messed something up

Yes, you've indeed specified incorrect paths in your configure.php files.

Example:
old site: yoursite.com/previous/
new site: yoursite.com/newfolder/

ALL you needed to do was change references to "previous/" to "newfolder/"

Nothing more, nothing less ... as far as editing the configure.php files goes. Remember, those files are read-only, so you'll need to make them writable before you can save changes to them.

5 Mar 2013, 10:55 PM
#5
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Re: Moved cart to new folder, messed something up

Thank you for the reply DrByte.

Ok, that's how I originally had it set up and something still went awry. I changed it back, still no go.

With it set up the with the correct paths and I load the website from the new location..its looking for the install files...http://www.avenuebeads.com/old/zc_install/index.php

6 Mar 2013, 3:31 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Moved cart to new folder, messed something up

When it's looking for install files, that means the configure.php file contents are invalid, or the files are missing or unreadable.

6 Mar 2013, 5:54 AM
#7
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Re: Moved cart to new folder, messed something up

Well hmmm. I can't figure out what I'm doing wrong. :blush:

See anything wrong with either of these configs?

include/config

<?php
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg, [url]http://www.yourdomain.com[/url]
  // HTTPS_SERVER is your Secure webserver: eg, [url]https://www.yourdomain.com[/url]
  define('HTTP_SERVER', 'http://www.avenuebeads.com');
  define('HTTPS_SERVER', 'https://www.avenuebeads.com');

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

// 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_CATALOG', '/old/');
  define('DIR_WS_HTTPS_CATALOG', '/old/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  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', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * 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_CATALOG', '/home/content/a/v/e/avenuebeads/old/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'h50mysql21.secureserver.net');
  define('DB_SERVER_USERNAME', '.....');
  define('DB_SERVER_PASSWORD', '.....');
  define('DB_DATABASE', '......');
  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', '/home/content/a/v/e/avenuebeads/old/cache');

?>

Admin/includes/config

<?php
//
/**
 *
 * @package Configuration Settings
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // Main webserver: eg, [url]http://localhost[/url] - should not be empty for productive servers
  // HTTP_SERVER is your Main webserver: eg, [url]http://www.yourdomain.com[/url]
  // HTTPS_SERVER is your Secure webserver: eg, [url]https://www.yourdomain.com[/url]
  // HTTP_CATALOG_SERVER is your Main webserver: eg, [url]http://www.yourdomain.com[/url]
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg, [url]https://www.yourdomain.com[/url]
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   */
  define('HTTP_SERVER', 'http://www.avenuebeads.com');
  define('HTTPS_SERVER', 'https://www.avenuebeads.com');
  define('HTTP_CATALOG_SERVER', 'http://www.avenuebeads.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.avenuebeads.com');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'true');
  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', '/old/joba/');
  define('DIR_WS_CATALOG', '/old/');
  define('DIR_WS_HTTPS_ADMIN', '/old/joba/');
  define('DIR_WS_HTTPS_CATALOG', '/old/');

  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', '/home/content/a/v/e/avenuebeads/old/joba/');
  define('DIR_FS_CATALOG', '/home/content/a/v/e/avenuebeads/old/');

  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', 'h50mysql21.secureserver.net');
  define('DB_SERVER_USERNAME', '.......');
  define('DB_SERVER_PASSWORD', '....');
  define('DB_DATABASE', '.....');
  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', '/home/content/a/v/e/avenuebeads/old/cache');

?>

The install was originally in the root and is now moved to a folder named "old".

6 Mar 2013, 6:16 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Moved cart to new folder, messed something up

While the files appear to be correct, maybe the real problem is that the paths specified aren't pointing to actual paths on your server.
It uses the things like DIR_FS_CATALOG and DIR_WS_INCLUDES and DIR_WS_CLASSES etc to assemble a path that needs to actually exist on your server, and then it looks for certain critical system files to be present in those folders. If they're not found, then it assumes that the paths provided are incorrect. But if the paths are correct, then perhaps your files are missing. ie: you didn't move all the folders correctly into the new location.

Or your configure.php files aren't readable by Apache+PHP (permissions issue?) and therefore it thinks they don't exist.

So, since your next question is going to be "what files belong where?", I point you to either a backup of your files, or the original Zen Cart zip.

It seems obvious that you're abandoning Zen Cart. Is this "old" folder just being kept in case your new store doesn't do the job you intend it to do?

6 Mar 2013, 6:53 AM
#9
avenuebeads avatar

avenuebeads

New Zenner

Join Date:
Aug 2006
Location:
Chicago IL
Posts:
80
Plugin Contributions:
0

Re: Moved cart to new folder, messed something up

That's exactly what I was doing in the mean time, deleting all the files I moved and uploading my back-up files in hopes I did misplace something important. Then my Internet went down. Blasted!!

Actually I'm not abandoning zen cart, I'm going to be using it for my wholesale customers.

6 Mar 2013, 7:36 AM
#10
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Moved cart to new folder, messed something up

AvenueBeads:

Actually I'm not abandoning zen cart, I'm going to be using it for my wholesale customers.

Since this is early days, rather than moving to a folder named "old", wouldn't it make a little more sense to move it to a folder called 'wholesale' (or similar)?

Practically and functionally it'll make no difference, but I think a URL like http://mydomain.com/wholesale/ will attract far more visistors, and looks a lot more professional (better thought out) than http://mydomain.com/old (which would leave me thinking there must be a 'new' equivalent site somewhere. :)

Cheers
Rod