wallart studios:
Many thanks for your continued interest here Ladies and Gents .. it is a tiny bit of stress relief I guess :smile:
I will try and keep up and please don't think me ignorant if I don't answer your points personally .. but i will do my best.
Firstly .. the noob vs newb :laugh: .. I guess its one of those things ... in the U.K that is how we interpret the newb term ... yes .. not nice is it ? :laugh:
So .. the store side version is the admin and normal configure.php ? I will post them here ...
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.wallart-studios.com');
define('HTTPS_SERVER', 'https://www.wallart-studios.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/ ......');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '........');
define('DB_SERVER_PASSWORD', '........');
define('DB_DATABASE', ' ........');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/visual/public_html/wallart-studios.com/cache');
// EOF
```
> That is the includes/configure.php with the target and database info taken out and the admin/configure.php is ....
>
> ```
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*
* URLs for your site will be built via:
* HTTP_SERVER plus DIR_WS_ADMIN or
* HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
* HTTP_SERVER plus DIR_WS_CATALOG or
* HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
* ...depending on your system configuration settings
*
* If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
*/
define('HTTP_SERVER', ' ........');
define('HTTPS_SERVER', ' .........');
define('HTTP_CATALOG_SERVER', ' ..........');
define('HTTPS_CATALOG_SERVER', ' ............');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/home/ ............');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');
// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_ADMIN', '/home/ .............');
define('DIR_FS_CATALOG', '/home/ ..................');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', ' ..........');
define('DB_SERVER_PASSWORD', ' ..........');
define('DB_DATABASE', ' .............');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage
// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/ ............');
// EOF
```
> SO ... what I am getting from these is that they are still 1.3.8a ... but I have no idea what, if anything, has been overwritten :dontgetit
>
> I believe what they did was just migrated as is .. and basically just told me that the database error was there ... although .. in Filezilla ... the directory structure has a load of directories that I don't recall being there. I have now admin/admin ... YOUR_ADMIN_FOLDER .... 1zc_install etc etc. When they migrated me over ... every zencart install (3 including the one I'm having issues with) was live but I was getting the zencart setup screen every time I tried to go into the backends. After 3 days .. they managed to sort the issue out ... but just left the database out of date issue to me. They migrated the 1.3.8 without any updates whatsoever as far as I know.
>
> Finally mc12345678 ... ( I hope thats everyone answered) ... I'm afraid as I have never updated zencart before ... I didn't make a new database ... I used the database upgrade utility and it had every checkbox from 1.3.8 to 1.5.4 automatically checked .. so I just clicked "update" and let it do it's thing :ohmy:
As to the issue of not being able to access the admin. If the above replacements in the admin/includes/configure.php file were correctly performed (even though information was obscured in some areas that appear unnecessary), then the following is/was incorrect:
```
define('DIR_WS_ADMIN', '/home/ ............');
```
This define should simply point to the subdirectory off of the store's main page, like if your site is www . mydomain . com, and the admin folder were my_secret_admin then the above should be:
```
define('DIR_WS_ADMIN', '/my_secret_admin/');
```
The substitution done:
```
define('HTTP_SERVER', ' ........');
define('HTTPS_SERVER', ' .........');
define('HTTP_CATALOG_SERVER', ' ..........');
define('HTTPS_CATALOG_SERVER', ' ............');
```
Seems unnecessary as the values for HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER should be the same here as they were for HTTP_SERVER and HTTPS_SERVER in the includes/configure.php file... If they are different, then there is yet another issue.
Seeing that the database has been upgraded but the files have not I would not suggest enabling the cart at this time without the equivalent file version to access the database, it would be my suggestion to install/upload ZC 1.5.4 files to a suitable location on the server, the database information of that install to reference your current database and from there you should be able to access your admin side. Currently and as a result of the database upgrade, there are aspects of the admin users data table that have changed and are not accessible by the old files... Therefore would not be able to use the old files (at or before 1.3.9) to access the admin side of the store.
Generally speaking if push comes to shove, the current configure.php files (includes and admin/includes) could be a starting point for the new files in this new directory... So, could copy them to say your local computer (ftp), then clear the contents of the subfolder (not your live regular running location), upload the files for ZC 1.5.4 (available from <https://www.zen-cart.com/getit>) upload the includes and admin/includes configure.php files to their respective location, and then would be able to access the admin side of the store for that new install... Your template/look will not be present and it will look a little off as a result of those files not being present (database will be trying to access the template as the active template) but it would be a start at least for the new version. Then can address template install/upgrade/copy over however it is desired to get back to business... Much more to do also, but step at a time. :)