Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    80
    Plugin Contributions
    0

    Default Config Files for Admin

    I am upgrading from 1.3.9h to 1.5.1 and have got the db uploaded and changed the configure.php files. I can browse to the web site but I cannot browse to the Admin log on I just get the message:

    WARNING: An Error occurred, please refresh the page and try again.

    I have double checked the db configures and they are the same as the db configure.php for the web site. So I think I may have a directory problem.

    If my Admin directory is www.website.com/zencart/admin123 then I am a bit confused as to what should go in the following:

    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');

    define('DIR_WS_CATALOG', '/zencart/');

    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');

    define('DIR_WS_HTTPS_CATALOG', '/zencart/');

    and

    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');

    define('DIR_FS_CATALOG', '/home/website/public_html/zencart/');

    I have tried adding 'admin123' in the 3 places following 'zencart' above but then I just get a blank screen when pointing to the Admin Login page.

    Can anyone please help with this?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Config Files for Admin


  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Config Files for Admin

    then I am a bit confused as to what should go in the following:
    Code:
    define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    This is code that automatically gets the name of your secret_admin folder.
    And doesn't need any changing.
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Jan 2010
    Posts
    80
    Plugin Contributions
    0

    Default Re: Config Files for Admin

    Thanks for your help.

    OK I have checked the log files and it appears the problem is with a table called 'dbprefix'_admin_pages not existing.

    I have checked my db with PHPMyAdmin and it certainly isn't there, but my db is a restore of a 1.3.9h version and that table doesn't exist there either.

    So please what do I do next?

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Config Files for Admin

    That table does exist in a stock Zencart installation (1.5.1). My guess is that it's part of the Admin Profiles function that was added to 1.5 and it sounds like you restored a 1.3.9 DB, but the 1.5 files are still looking for that table. You may nave to upgrade your DB to 1.5.

  6. #6
    Join Date
    Jan 2010
    Posts
    80
    Plugin Contributions
    0

    Default Re: Config Files for Admin

    Yes you are correct so then the question is how do I upgrade the db tables when I can't get access to the Admin function?

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

    Default Re: Config Files for Admin

    Quote Originally Posted by gcopping View Post
    Yes you are correct so then the question is how do I upgrade the db tables when I can't get access to the Admin function?
    From the Zen Cart FAQ: How do I upgrade my site. Note steps 8+

    Another Upgrade Method: How Do I Rebuild My Site On The New Version.
    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

 

 

Similar Threads

  1. which config files for upgrade?
    By polygone in forum Upgrading to 1.5.x
    Replies: 7
    Last Post: 13 Aug 2012, 03:23 AM
  2. order emails to admin language/config files
    By JimmyV in forum General Questions
    Replies: 4
    Last Post: 14 Jul 2010, 06:07 PM
  3. New install no includes/dist-config or admin/dist-config files?
    By retroboutiques in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 7 Dec 2007, 07:54 AM
  4. User Tracking for zen 1.3.6 admin config problem!
    By miles in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 21 Dec 2006, 12:46 PM

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