Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Is this the correct procedure?

Is this the correct procedure?

Locked

Views: 603

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
1 May 2010, 5:20 AM
#1
rays avatar

rays

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Is this the correct procedure?

I was trying to upgrade from 1.3.8a to 1.3.9a using the procedure in /docs/2.readme_how_to_upgrade.html

Step "3. Testing" did not achieve the expected result; I believe some steps are missing. I tried some things, and what seems to have worked was to:

  1. go to zc_install to install zencart to a new blank database
  2. replace that database with the backup database
  3. go back to zc_install but this time choose upgrade instead of install.

Here is my version of the instructions, with additions italicized in red. It seems to work, but I'd like some feedback to make sure I didn't miss anything. Please feel free to reply with your own improved version; hopefully will get something that's clear and correct:

3. Testing

Make a NEW temporary database to install the new version of Zen Cart™ into; attach a database user to it. Use your hosting control panel to do this.

<paragraph moved below>

If your /zen_new folder doesn't have "/includes/configure.php" and "/admin/includes/configure.php" files, copy them from your old store folder.

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

Upload the files from your modified "new version" (created in step 2) to your server, into an alternate folder, perhaps called "/store_new".

Ensure that you have uploaded the "/zen_new/zc_install" folder to your server.

Using your browser, surf to /zc_install/index.php and install zen cart.

<paragraph moved from above:> 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.

Replace the new temporary database with your backup database; attach a database user to it.

Using your browser, surf to /zc_install/index.php and choose "Database 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.)

If the process is successful, your zen-cart will now contain the data from your backup database, and it will be in maintenance mode.

Test your customizations. Edit as needed. Compare with the test/demo install performed earlier, as needed.


Okay, am I on the right track? Did I screw up? Is my shopping cart going to explode? If you see something wrong, reply with your version.

1 May 2010, 9:08 AM
#2
rays avatar

rays

New Zenner

Join Date:
Apr 2009
Posts:
3
Plugin Contributions:
0

Re: Is this the correct procedure?

Here's a better one, I think:

3. Testing

Make a NEW temporary database to install the new version of Zen Cart™ into; attach a database user to it. Use your hosting control panel to do this.

<paragraph moved below>

If your /zen_new folder doesn't have "/includes/configure.php" and "/admin/includes/configure.php" files, copy them from your old store folder.

EDIT your "/zen_new/includes/configure.php" file and ensure that your DATABASE_NAME matches your NEW database. Also verify database username and password and table prefix in case that information has changed. Save this file, and be sure to upload it as part of the next step. Repeat for the /admin/includes/configure.php file as well. Set permissions of both files to 777.

Upload the files from your modified "new version" (created in step 2) to your server, into an alternate folder, perhaps called "/store_new".

Ensure that you have uploaded the "/zen_new/zc_install" folder to your server.

Using your browser, surf to /zc_install/index.php and install zen cart.

At this point the cart (not the installation pages) should display an "Installation directory" error.

<paragraph moved from above:> 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.

Delete the new temporary database. Copy your database backup to the same database name, or create a new blank database of same name and import the backup into it; attach the same database user to the database.

At this point the cart should display two errors: the "Installation directory" error, plus a "database appears to
need patching" error.

Using your browser, surf to /zc_install/index.php and choose "Database 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.)

If the process is successful, your zen-cart will now contain the data from your database backup, and it will be in maintenance mode, displaying an "Installation directory" error.

Set the permissions of the two configure.php files to 444.

Delete or rename the "/zen_new/zc_install" folder on your server, and rename the admin folder. At this point the cart should display no errors.

Test your customizations. Edit as needed. Compare with the test/demo install performed earlier, as needed.


Hope that's more helpful.,