Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2014
    Location
    ottawa, ontario, canada
    Posts
    18
    Plugin Contributions
    0

    Default Something wrong with my admin folder

    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

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

    Default Re: Something wrong with my admin folder

    Quote Originally Posted by keithduong View Post
    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
    What about the defines that have _FS_ in them? Do they still point to the old directory or the new one?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Something wrong with my admin folder

    Quote Originally Posted by keithduong View Post
    ... when I go to the admin page, it is blank. ...
    Usually a blank (empty) page indicates an error occurred. Can you post the contents of any corresponding debug logs?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Jan 2014
    Location
    ottawa, ontario, canada
    Posts
    18
    Plugin Contributions
    0

    Default Re: Something wrong with my admin folder

    Quote Originally Posted by mc12345678 View Post
    What about the defines that have _FS_ in them? Do they still point to the old directory or the new one?
    Thank you very much for your help. I found a missing trailing slash in one of the FS defines. The admin login page is ok now.

 

 

Similar Threads

  1. something wrong with a page
    By christinemattson in forum General Questions
    Replies: 5
    Last Post: 8 Jun 2008, 04:13 AM
  2. something wrong with my installtion !!
    By alhakeem2001 in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 11 Dec 2007, 12:51 PM
  3. Oops, need help - something wrong after relocating store folder
    By DravenLS in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Dec 2007, 06:02 PM
  4. Rename Admin folder instructions does not work - did something wrong
    By ronwong in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 4 Dec 2006, 11:49 AM

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