Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Can't log into cloned site's admin page

    Hello all,

    I am using the latest version of Zen Cart and have cloned my website so I can test configuration changes in an offline environment. However, when I try to log into the clone's admin page I am redirected to the live site's admin page instead.



    The cloned site is exactly that; I copied all of the files and folders in my "public_html" directory and placed them in a new directory "site_clone", then modified the configure.php files for the cloned site to access a clone of the mysql database. When I type "www.on-grade.ca/site_clone/admin" into the address bar of a web browser, I am redirected to "www.on-grade.ca/manage", which is the login screen for the live site's admin page instead of the offline site's admin page.

    tl;dr

    I want to make changes to the clone site through the admin page but can only access the live site's admin page. How do I fix this?

  2. #2
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    Fixed my own problem. If anyone suffers from a similar problem, here was my solution:

    I opened up filezilla and copied the configure.php file from my 'admin' folder to my desktop. Then I changed "define('DIR_WS_ADMIN', '/xxxx/')" and "define('DIR_WS_HTTPS_ADMIN', '/xxxx/')", replacing xxxx with the directory I stored my admin folder (in my case "/site_clone/admin/")

  3. #3
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    If you do decide to copy your files to make a copy of your Zen Cart site, the configure.php files need to be edited to define the folder location of the cloned website. For instance, in the configure.php files I had to redefine "define('DIR_WS_IMAGES', 'images/')" to "define('DIR_WS_IMAGES', 'site_clone/images/')", etc.

  4. #4
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    Well, I thought I had fixed it. But it looks like it's still broken. After I finished modifying the configure.php files as described in the above posts, I tried going to 'www.on-grade.ca/site_clone/admin' again. Now, I simply get an empty screen:



    Zero feedback, nothing to tell me what's going on. Here's a snippet from my 'admin/includes/configure.php' file to help demonstrate the changes I made:



    As you can see, I added 'site_clone' in front of all the defined directories because that's the directory where the clone is stored. You can confirm this via the screenshot from my first post.

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    Please change the sheet to this please in this section only...
    but save a copy of the one you have on the server...

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

    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/ongrade/public_html/site_clone/admin/');
    define('DIR_FS_CATALOG', '/home/ongrade/public_html/site_clone/');

    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/');
    Mark
    Hare Do

  6. #6
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    Thank you for the assistance haredo. I don't know why/how, but after I changed my configure.php file in the 'admin/includes' directory of the site clone, I completely lost access to the website, both live and clone. If I go to 'www.on-grade.ca' or 'www.on-grade.ca/site_clone', I receive the following:



    I am also unable to connect to my FTP server using Filezilla. I receive the following error messages:

    Error: Connection timed out
    Error: Could not connect to server

    I am very concerned because this means the live site is down and inaccessible. I have been working completely within the 'site_clone' directory, so why is my entire site completely dead? Can someone please visit www.on-grade.ca and confirm it is inaccessible on your end?

    EDIT: Using the 3G network via my iPhone, I can confirm that the site is still accessible from other sources. Why am I locked out of my own website from my home network? This happened to me when I went to school yesterday, and when I tried accessing the website from my company's network.
    Last edited by Tamuren; 9 May 2011 at 03:48 PM.

  7. #7
    Join Date
    Apr 2011
    Posts
    95
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    After waiting a while (roughly 20 minutes), I was able to access the website again. I then re-attempted to access the admin page for the clone site, and was successful using haredo's recommended modifications. I am not going to touch this file again, in fear of god striking me down and setting the server on fire.

  8. #8
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Can't log into Zen Cart clone's admin page

    Great news, your site_test site is up and running...
    Good Luck
    Mark
    Hare Do

 

 

Similar Threads

  1. Site Backup Restored - Can't Log Into Admin
    By designsbytrina in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 25 Jun 2011, 11:23 PM
  2. Can not log in to Admin Page or See Site
    By mgodwin in forum General Questions
    Replies: 8
    Last Post: 24 May 2011, 03:01 PM
  3. Can't log into my admin page
    By elvisstuff in forum Basic Configuration
    Replies: 2
    Last Post: 16 Jan 2010, 08:31 PM
  4. Replies: 4
    Last Post: 25 Jun 2009, 08:46 PM
  5. Moving Site from one host to another. Can't log into admin
    By dinki in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 6 Mar 2009, 07:37 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