Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Site Layout Very Distorted after Moving Directories

Site Layout Very Distorted after Moving Directories

Locked

Views: 1,008

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Oct 2007, 11:14 PM
#1
airspeed avatar

airspeed

New Zenner

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

Site Layout Very Distorted after Moving Directories

https://www.airspeed-x.com/index.php to see what I mean...

I changed directories from public_html/catalog to just /public_html and now I'm getting what you see above. Is there any hope? Or should I just delete everything and start again? I did make a backup before doing this, but Im not sure if that will help for a fresh installation? Yikes...

15 Oct 2007, 11:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site Layout Very Distorted after Moving Directories

Did you have a htaccess at this level tht maybe you did not get rid of?

Try making a copy of these to your local and deleting them from the server and see if that helps

Also check that you have made the corrections to your configure.php files in all places and to both of them

16 Oct 2007, 12:00 AM
#3
airspeed avatar

airspeed

New Zenner

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

Re: Site Layout Very Distorted after Moving Directories

I did have an htaccess file at that level that I did not get rid of. I just did, however no change. The htaccess file was completely empty anyway.

I also read a post from Dr Byte, and mentioned that there should not be /public_html/ in the configure.php files for DIR_WS_CATALOG or the HTTP_SERVER setting. I have it set as that, so I guess Ill just change it to "//" and see what happens...

This is my current admin configure.php file:

<?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://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', '/admin/');
  define('DIR_WS_CATALOG', '/public_html/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/public_html/');

  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/admin/');
  define('DIR_FS_CATALOG', '/home2/airspeed/public_html/');

  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');
  define('DB_SERVER_PASSWORD', 'xxxx');
  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/cache');
16 Oct 2007, 12:14 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site Layout Very Distorted after Moving Directories

This is incorrect.

** define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/public_html/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/public_html/');**

It sets your base path to be: <base href="http://airspeed-x.com/public_html/" />

Change both your config files to read:

** define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');**

16 Oct 2007, 12:16 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site Layout Very Distorted after Moving Directories

Try

  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/');

The one you posted belongs at /admin/includes/
Also make certian that you also edit the one at /includes

16 Oct 2007, 12:17 AM
#6
airspeed avatar

airspeed

New Zenner

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

Re: Site Layout Very Distorted after Moving Directories

Thanks a lot Website Rob and kobra! Looks like you two had a race going! I'll give it a try.

EDIT: It worked! ...and I still have some hair left!

Now, do I have to have that htaccess file present? There currently isn't one present in the current directory.
Thanks again guys!

16 Oct 2007, 12:23 AM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site Layout Very Distorted after Moving Directories

When two great minds are giving the same advice, how can you go wrong? :flex: