Results 1 to 10 of 10
  1. #1

    Default Moving folder problems despite following wiki

    High Everyone, I'm running into a bit of trouble whilst moving my site to another folder. I am experimenting with a new look but want to keep the old site running in a different folder.
    I have moved all the files to a folder called "upload" and followed the instructions here
    http://www.zen-cart.com/wiki/index.p...Change_Folders

    The admin side is working fine but images and links on the main webpage are all going to the old pages i.e. without the "upload" in the link.

    Pulling my hair out a bit.
    you can see what is happening here:
    www.curvesandcorsets.com/upload/index.php

    I would be very grateful if anyone could shed a light as to what is going wrong.
    Here is my upload/includes/configure.php file:

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2011-05-05 08:22:57
    */


    /*************** 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-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://www.curvesandcorsets.com');
    define('HTTPS_SERVER', 'https://www.curvesandcorsets.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', '/upload/');
    define('DIR_WS_HTTPS_CATALOG', '/upload/');

    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/7/7/1/4313/4313/public_html/upload/');

    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', 'xxx');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'xxx');
    define('DB_SERVER_USERNAME', 'xxx');
    define('DB_SERVER_PASSWORD', 'xxxx');
    define('DB_DATABASE', 'xxx');
    define('USE_PCONNECT', 'xxxx');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, 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/7/7/1/4313/4313/public_html/upload/cache');

    // EOF

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Moving folder problems despite following wiki

    in the upload/includes/configure.php did you change the permissions before you saved it? it automatically goes back to read-only on the first page load. Sometimes it's helpful to rename the current configure.php, upload the new one and then delete the old one.

  3. #3

    Default Re: Moving folder problems despite following wiki

    yup, it's 777

  4. #4
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Moving folder problems despite following wiki

    Does the file look the same via file manager in your cPanel?

  5. #5

    Default Re: Moving folder problems despite following wiki

    I'm not familiar with the file manager in the cp...

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Moving folder problems despite following wiki

    Are you using a URI rewriter or redirects in your .htaccess? All the links and images are pointing back to the main store, also there is code in the page that is assigning values to the variable: manufacturers_sidebox_uri_mappings which seems to imply that there is a mapping manager of some type going on here.

    Also, the database that is being used to support this backup site, is it the live database, or a copy of that database? What version of ZC is being used? Has the fix_cache_key utility been used on the database to update it? (Realize that if in ZC 1.5.3, although it is supposed to autocorrect the cache key, if the original files are still present/available on the system then ZC 1.5.3 will not correct the cache_key because of the check that is performed to identify the need to update the database key.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7

    Default Re: Moving folder problems despite following wiki

    The data base is a completely separate one to the now active site (i have 2 data bases). I have an seo rewriter installed and I'm using 1.3.9h

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Moving folder problems despite following wiki

    Since you are wanting to keep one running while testing the other, what about the steps at http://www.zen-cart.com/entry.php?3-...-of-upgrading?

  9. #9

    Default Re: Moving folder problems despite following wiki

    there doesn't seem to be anything obvious in there, i'm trying to turn off the seo remapping but having no luck at the moment.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Moving folder problems despite following wiki

    Quote Originally Posted by johnybravo View Post
    there doesn't seem to be anything obvious in there, i'm trying to turn off the seo remapping but having no luck at the moment.
    More than likely the .htaccess file at the root of your uri has a rewrite in it that may be modifying the overall process, or the fact that it is still included in the backup, there may be a "setting" that needs to be modified to recognize the additional folder name. The fact though that no link properly includes the subdirectory, somewhat points back to the .htaccess file in my opinion.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Admin Folder problems after moving site to new URL
    By Forum5 in forum General Questions
    Replies: 2
    Last Post: 20 Feb 2014, 08:20 PM
  2. Question after following the Custom Sidebox Tutorial in the wiki
    By bobmeetin in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 29 Apr 2013, 02:32 PM
  3. Need Help With Following a Folder Tree
    By fabienne in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Apr 2012, 09:04 PM
  4. Moving from test folder to live folder on web server?
    By Gewehr 43 in forum General Questions
    Replies: 13
    Last Post: 4 Jun 2009, 10:12 PM
  5. Following instructions in "Securing your ZenCart Store" in WIKI
    By busyMom in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jul 2007, 07:33 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR