If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Can't log into cloned site's admin page

Can't log into cloned site's admin page

Started by tamuren on 9 May 2011, 12:38 PM · Views: 1,457

Results 1 to 8 of 8
9 May 2011, 12:38 PM
#1
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #1 by tamuren

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.

[IMG]http://img835.imageshack.us/img835/1628/unledgz.png[/IMG]

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?

9 May 2011, 12:50 PM
#2
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #2 by tamuren

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/")

9 May 2011, 1:02 PM
#3
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #3 by tamuren

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.

9 May 2011, 1:19 PM
#4
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #4 by tamuren

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:

[IMG]http://img705.imageshack.us/img705/2205/unledism.png[/IMG]

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:

[IMG]http://img807.imageshack.us/img807/5360/snippet.png[/IMG]

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.

9 May 2011, 1:55 PM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #5 by haredo

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

9 May 2011, 2:42 PM
#6
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #6 by tamuren

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:

[IMG]http://img807.imageshack.us/img807/5530/unledtm.png[/IMG]

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 https://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.

9 May 2011, 3:22 PM
#7
tamuren avatar

tamuren

New Zenner

Join Date:
Apr 2011
Posts:
95
Plugin Contributions:
0

Post #7 by tamuren

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.

9 May 2011, 3:45 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Post #8 by haredo

Great news, your site_test site is up and running... > Good Luck

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.