Originally Posted by
keithduong
Hi,
I have just moved my zen cart from a sub-directory to the root folder by following the link "I have installed Zen Cart to a directory. How do I rename or move that directory?". The zen cart is working. But, when I go to the admin page, it is blank. I can still access the admin panel through the old /root/old_folder/admin and make changes to the root folder zen cart. It seems that the new zen cart cannot see the new admin folder. Trying to correct the problem, I applied the fix_cache_key.php but the blank admin page persists. I looked at my configure.php files and here are some codes related to the admin page/panel. I do not see any wording that I can change to my new admin folder.
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/');
Would you please let me know what I have done incorrectly?
Thanks
Bookmarks