Re: Config Files for Admin
Re: Config Files for Admin
Quote:
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.
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?
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.
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?
Re: Config Files for Admin
Quote:
Originally Posted by
gcopping
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.
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?
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.
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?