Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Location
    Ontario
    Posts
    15
    Plugin Contributions
    0

    Default Site Layout Very Distorted after Moving Directories

    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...

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2007
    Location
    Ontario
    Posts
    15
    Plugin Contributions
    0

    Default 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:

    Code:
    <?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');

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default 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', '/');

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Site Layout Very Distorted after Moving Directories

    Try
    Code:
      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
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Oct 2007
    Location
    Ontario
    Posts
    15
    Plugin Contributions
    0

    Default 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!
    Last edited by Airspeed; 16 Oct 2007 at 01:23 AM.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Site Layout Very Distorted after Moving Directories

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

 

 

Similar Threads

  1. v154 site running very slow after upgrade from 1.3.7
    By delia in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 12 Feb 2015, 03:48 PM
  2. Probel in index page layout after moving to 1.3.9
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Aug 2011, 03:16 AM
  3. Moving directories
    By igendreau in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Oct 2009, 04:04 AM
  4. Very strange Firefox glitch after moving header nav below logo
    By gingertea in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Aug 2007, 04:54 AM
  5. moving directories around
    By whiteboxer in forum Basic Configuration
    Replies: 13
    Last Post: 7 Jul 2006, 12:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg