Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  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,024
    Plugin Contributions
    3

    Default Re: Config Files for Admin


  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    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,024
    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

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

    Default Re: Config Files for Admin

    OK but when it says "run zc_install" I don't understand where I run it from. I thought these scripts were run from within the Admin function but if I can't get into the Admin function then where do I run the script from?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Config Files for Admin

    You run zc_install by navigating to that folder URL in your browser.
    www.yoursite.com/zc_install/
    assuming you have Zen Cart residing in the domain root.
    Or if it is in a subfolder
    www.yoursite.com/your_zencart_folder/zc_install/

    This requires that you (still) have the zc_install folder on your site. It needs to be deleted after installation/upgrading is completed.

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

    Default Re: Config Files for Admin

    OK thanks now I understand, I appreciate your help.

    However I have installed 1.5.1 from my hosting company and it does not contain the folder zc_install. Therefore I have downloaded 1.5.1 from the ZenCart site and ftp'd the folder across.

    When I run it I get a warning that the file /admin/includes/configure.php does not exist - it will not because my installation does not have a folder called 'admin' but an admin folder named with a long list of letters and numbers automatically created by my hosting company installation of 1.5.1

    Therefore do I need to change this folder name back to 'admin' to run zc_install and then change it back afterwards? Are there any other implications of doing this, or should I be doing it another way?

 

 
Page 1 of 2 12 LastLast

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

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