This is a notification for Guests
Forums / Upgrading to 1.5.x / Updrade problem.

Updrade problem.

Results 1 to 20 of 49
10 Sep 2012, 16:00
#1
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Updrade problem.

Following the steps from this link:
http://www.zen-cart.com/content.php?148

3. Testing

Make a NEW database to install the new version of Zen Cart® into. Done

If the last backup you made of your data is older than the last order that might have been processed or customer registration, make a fresh database backup.
Restore your database from the backup in step #1 earlier into your NEW database just created.Done. imported structure via phpMyadmin.

If your /zen_new folder doesn't have "/includes/configure.php" and "/admin/includes/configure.php" files, copy them from your old store folder. Done. copied along with all of the files from my local host to the webserver.

EDIT your "/zen_new/includes/configure.php" file and ensure that the DIR_FS_CATALOG and DIR_WS_CATALOG and DIR_FS_SQL_CACHE (and other path settings too) correctly match your NEW directory structure on the server. Done...and I'm 99% sure I got it right.

EDIT your "/zen_new/includes/configure.php" file and ensure that your DATABASE_NAME matches your NEW database. Also verify database username and password in case that information has changed. Save this file, and be sure to upload it as part of the next step: Done..well same as above.

Upload the files from your modified "new version" (created in step 2) to your server, into an alternate folder, perhaps called "/store_new". Done. All files from localhost FTP'd to new folder on my hosts server

Run /zc_install/index.php and choose "Upgrade" when prompted. (Don't select "Install", or you will overwrite your database.) (If "Upgrade" is not offered, then the installer was unable to connect to your database to confirm what version its structure is at. Check your configure.php settings.) And here is where I'm running into a problem.


When I enter the address for the new folder that contains all the files that I uploaded I get this:
Not Found

The requested URL /NEWFOLDER/zc_install/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The folder is most certainly there. the root directory is complete and I'm looking at zc_install/index.php in the directory structure......


So where did I screw-up?
I thought my syntax in the URL bar might be wrong but I've tried darn near everything.
www. my_site.com / home/ CUSTOMFOLDERNAME / CUSTOMFOLDERNAME_NEW_ZC / zc_install / index.php
www. my_site.com / CUSTOMFOLDERNAME_NEW_ZC / zc_install/index.php

Still getting the same error.

I currently have my site in a maintenace mode so I don't have to make yet another back-up of my DB.
10 Sep 2012, 16:04
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Updrade problem.

You apparently are not entering the path correctly
10 Sep 2012, 16:08
#3
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

I've gone down the directory tree structure at least a dozen times and checked my spelling at least that many times.....ARGGGHHHHH!
10 Sep 2012, 16:13
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Updrade problem.

Post a site url and the proposed new site path or PM me
10 Sep 2012, 16:16
#5
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

PM sent
10 Sep 2012, 18:25
#6
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

Anyone care to throw out a random thought, idea or suggestion?
10 Sep 2012, 18:35
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Updrade problem.

Check cpanel for any redirect
Rename your htaccess on a temp basis
10 Sep 2012, 18:36
#8
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Posts:
2,400
Plugin Contributions:
0

Re: Updrade problem.

Anyone care to throw out a random thought, idea or suggestion?

2 + 2 = 5, for very large values of 2

Rob
10 Sep 2012, 19:13
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Updrade problem.

rstevenson:

2 + 2 = 5, for very large values of 2

Rob
:laugh::laugh::laugh:
10 Sep 2012, 19:46
#10
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

kobra:

Check cpanel for any redirect
Rename your htaccess on a temp basis
Tried renaming the .htacess, no change.

I'm not familiar enough with cpanel to know where to look...or what to look for.
10 Sep 2012, 19:51
#11
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

No redirects configured....
10 Sep 2012, 20:05
#12
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

admin/includes/configure.php
define('HTTP_SERVER', 'http://seriousoffroadproducts.com');
define('HTTPS_SERVER', 'https://seriousoffroadproducts.com');
define('HTTP_CATALOG_SERVER', 'http://seriousoffroadproducts.com');
define('HTTPS_CATALOG_SERVER', 'https://seriousoffroadproducts.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'false');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', '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)
$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', '/seriouso_new/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/seriouso_new/');

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)
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', 'seriouso_new');

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', 'zc_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'NewDataBaseName');
define('DB_SERVER_USERNAME', 'NewDataBaseName_Username');
define('DB_SERVER_PASSWORD', 'PASSWORD');
define('DB_DATABASE', 'NewDatabaseName');

// 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', 'cache');


// 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
*/
// EOF
10 Sep 2012, 20:09
#13
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

includes/configure.php

<?php
/**
* @package Configuration Settings circa 1.5.0
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* File Built by zc_install on 2012-09-06 02:16:48
*/


/*************** 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://seriousoffroadproducts.com');
define('HTTPS_SERVER', 'https://seriousoffroadproducts.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', '/seriouso_new/');
define('DIR_WS_HTTPS_CATALOG', '/seriouso_new/');

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', '/seriouso_new/');

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', 'zc_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'NewDatabaseName');
define('DB_SERVER_USERNAME', 'NewDatabase_UserName');
define('DB_SERVER_PASSWORD', 'PASSWORD');
define('DB_DATABASE', 'NewDatabaseName');

// 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', 'cache');

// EOF
10 Sep 2012, 20:10
#14
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

Any glaring errors?
10 Sep 2012, 20:24
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Updrade problem.

Yup.

define('DIR_FS_CATALOG', '/seriouso_new/');
and
define('DIR_FS_SQL_CACHE', 'cache');

Those are almost certainly invalid.

They need to be COMPLETE paths.

So if your /seriouso_new/ folder is actually at /home/users/www/serious/public_html/seriouso_new/ then that longer path is what you need to be using.
And the cache one needs the same path with /cache/ on the end of it.

That's why it's always best to let zc_install build your configure.php file contents for you.

http://www.zen-cart.com/content.php?307-configurephp-file-contents-explained
10 Sep 2012, 20:25
#16
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Posts:
1,780
Plugin Contributions:
2

Re: Updrade problem.

Hi Serious
Is this the site that you have recently installed Ceon rewrite into? A long shot but worth a go perhaps...can you access DB via phpmyadmin, find the configuration switch for rewrite on/off and switch it off. (0/ zero)
10 Sep 2012, 20:29
#17
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Posts:
1,780
Plugin Contributions:
2

Re: Updrade problem.

DrByte:

Yup.

define('DIR_FS_CATALOG', '/seriouso_new/');
and
define('DIR_FS_SQL_CACHE', 'cache');

Those are almost certainly invalid.

They need to be COMPLETE paths.

So if your /seriouso_new/ folder is actually at /home/users/www/serious/public_html/seriouso_new/ then that longer path is what you need to be using.
And the cache one needs the same path with /cache/ on the end of it.

That's why it's always best to let zc_install build your configure.php file contents for you.


Ahh that was gonna be my next suggestion ;-)
10 Sep 2012, 20:33
#18
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

DrByte:

Yup.

define('DIR_FS_CATALOG', '/seriouso_new/');
and
define('DIR_FS_SQL_CACHE', 'cache');

Those are almost certainly invalid.

They need to be COMPLETE paths.

So if your /seriouso_new/ folder is actually at /home/users/www/serious/public_html/seriouso_new/ then that longer path is what you need to be using.
And the cache one needs the same path with /cache/ on the end of it.

That's why it's always best to let zc_install build your configure.php file contents for you.
Curious.
The formerly live site wasn't configured as such.
I'll give it a try.

picandnix:

Hi Serious
Is this the site that you have recently installed Ceon rewrite into? A long shot but worth a go perhaps...can you access DB via phpmyadmin, find the configuration switch for rewrite on/off and switch it off. (0/ zero)
Yes it is.
10 Sep 2012, 20:42
#19
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Updrade problem.

Progress!
Not success...but progress!!


Finally able to get the Install screen to come up but ZC is trying to do a fresh install, not a DB Upgrade.
10 Sep 2012, 20:46
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Updrade problem.

That means it's not finding the existing Zen Cart tables in the database, or can't login to the database using the credentials provided.