Zen Cart Logo
Forums / Upgrading to 1.5.x / 1.3.9h to current version upgrade

1.3.9h to current version upgrade

Views: 3,858

Results 1 to 20 of 27
10 Dec 2013, 8:39 AM
#1
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

1.3.9h to current version upgrade

I just want to confirm (yes I did read the upgrade and keep inof but...) that to do the upgrade from 1.3.9h to the current version I should do it like I did when the host is different from where store was.

  1. back files to computer
  2. back up database
  3. upload new files to server either overwriting or after deleting the old ones
  4. install as if new store
  5. make sure it works and is accessible
  6. reinstall all plugins with updated versions
  7. droop tables in new database ( which has been created with the database name/db user and pass as before)
  8. import table info from old DB

Then check again.

or should I do all of the above before installing all the plugins again.

10 Dec 2013, 8:46 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: 1.3.9h to current version upgrade

    • please delete the old ones. You'll just get grey hair if you don't.

Be sure to run the DB upgrade from 1.39h to 1.51 with the ZC Installer

10 Dec 2013, 9:34 AM
#3
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

Thanks Twitch, I usually delete all old files leaving only the override folders for the templates only but wanted to make sure I was gonna do the update right...have not done an actual update in centuries it seems.

do you think I should install the plugins after the entire other stuff is done?

10 Dec 2013, 11:45 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: 1.3.9h to current version upgrade

DarkAngel:

Thanks Twitch, I usually delete all old files leaving only the override folders for the templates only but wanted to make sure I was gonna do the update right...have not done an actual update in centuries it seems.

do you think I should install the plugins after the entire other stuff is done?

Something that I'm not sure I properly read/understood was that your new store (upgrade) should happen all in a different directory/different directory, with functionality verified there before redirecting or moving the files to the old location. As for moving/updating the data, first suggest following the recommended directions: however, believe that the data could be updated in either way. I guess the important thing to note is that some plugins when updated may require different fields in the database than the earlier version. As a result if the tables are dropped after the plugin(s) are installed and the old database is imported (reformatting the tables to the old version(s), and then the plugin(s) are not again updated (SQL statements run as applicable) then the database will not be up-to-date with the most recent version. I thought one of the statements was to either upgrade your site or upgrade your plugins, not both at the same time. This statement leads me to think that your initial process description is incomplete as you may need to "update" your plugins again after the last check.

Regarding template/override files. It's "okay" to keep the override files, but you will want to compare the override file(s) to the base file(s) to update any changes made applicable to the newer version of the cart.

Make sense?

10 Dec 2013, 6:05 PM
#5
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

mc12345678:

Something that I'm not sure I properly read/understood was that your new store (upgrade) should happen all in a different directory/different directory, with functionality verified there before redirecting or moving the files to the old location. As for moving/updating the data, first suggest following the recommended directions: however, believe that the data could be updated in either way.

Yes that confused me too but I was hoping that I did not need to do that. I was just (since it is root level and not in a folder to begin with) going to make a landing page that said the store was in maintenance. While I demolish it by removing all store core files and leaving the template over-ride ones there.

IF it is essential to create the store in a new directory, then when done undo the config file paths I can do that too but I was just going to install the store as if it had never been installed, then change out the DB with the old one....as is I were moving it from one host to another, as I just did with another persons store.

I guess the important thing to note is that some plugins when updated may require different fields in the database than the earlier version. As a result if the tables are dropped after the plugin(s) are installed and the old database is imported (reformatting the tables to the old version(s), and then the plugin(s) are not again updated (SQL statements run as applicable) then the database will not be up-to-date with the most recent version. I thought one of the statements was to either upgrade your site or upgrade your plugins, not both at the same time. This statement leads me to think that your initial process description is incomplete as you may need to "update" your plugins again after the last check.

AHA that is just what I was trying to figure out....first do the upgrade then when done do the plugins as if it were a complete new store. I knew that ALL the plugins used now would need to be reinstalled with their newer version compatible with 1.5+

Regarding template/override files. It's "okay" to keep the override files, but you will want to compare the override file(s) to the base file(s) to update any changes made applicable to the newer version of the cart.

Make sense?

Totally, I know that this template is probably going to pitch a fit due to it being a template monster one from several years ago. Hoping he would like a new template too, there are many free ones here that can be edited to appear like his...or as close as possible. I did have to butcher it a bit to get somethings to work even in 1.3.9h soooo, I can most likely just add the files that match from the original store files. I shall see.

I am hoping that one of the more experienced helpers here would chime in here too....thanks for doing just that. I can usually follow instructions, especially if I write them down like in my post so I do not mess up---I tend to do things backwards at times, transposing when writing or doing steps plays havoc with ones mind...LOL

10 Dec 2013, 8:53 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

I just want to confirm (yes I did read the upgrade and keep inof but...) that to do the upgrade from 1.3.9h to the current version I should do it like I did when the host is different from where store was.

  1. back files to computer
  2. back up database
  3. upload new files to server either overwriting or after deleting the old ones
  4. install as if new store
  5. make sure it works and is accessible
  6. reinstall all plugins with updated versions
  7. droop tables in new database ( which has been created with the database name/db user and pass as before)
  8. import table info from old DB

Then check again.

or should I do all of the above before installing all the plugins again.

NO NO NO.. none of this..

an upgrade is really a rebuild as DrByte says here:[ http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading](http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading)

Well, an upgrade is basically a rebuild. At least, that's what I find to be the simplest approach to take when upgrading.

So here's the high level version of what you need to do

  1. BACKUP EVERYTHING!!! (DB and files)
  2. Create a development/test folder, and copy the Zen Cart v1.5.1 files there. Add to this ONLY your two configure files, along with your images, and downloads folders from your v1.3.9 backup.
  3. Create a development database
  4. dump your v1.3.9 DB into the development DB
  5. Follow the normal UPGRADE install path. (in addition to the DB upgrade, there is an optionwhich will update your configure files to the new 1.5.x format. USE IT!)

Once the install is complete, then re-install all your add-ons.

This is the the most efficient way to do an upgrade, and will work without a hitch.. Folks run into problems because they are trying to find a shortcut.. Trust me when I say.. THIS IS the shortcut..

10 Dec 2013, 9:02 PM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: 1.3.9h to current version upgrade

DivaVocals:

......This is the the most efficient way to do an upgrade, and will work without a hitch.. Folks run into problems because they are trying to find a shortcut.. Trust me when I say.. THIS IS the shortcut..

Absolutely!

Don't try it any other way, listen to those who have done it as recommended by Dr Byte! If you don't you invariably run into a brickwall :frusty:

10 Dec 2013, 9:06 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

Yes that confused me too but I was hoping that I did not need to do that. I was just (since it is root level and not in a folder to begin with) going to make a landing page that said the store was in maintenance. While I demolish it by removing all store core files and leaving the template over-ride ones there.

IF it is essential to create the store in a new directory, then when done undo the config file paths I can do that too but I was just going to install the store as if it had never been installed, then change out the DB with the old one....as is I were moving it from one host to another, as I just did with another persons store.

Why put the store out of commission while you upgrade?? Customers will go elsewhere and NEVER come back..

Unless there is a URGENT need (ie: site hack) to take the live site down for an upgrade, the RIGHT WAY to do this is to build a development/test store.. this way you can test things while the live store continues to live on.. (which is WHY DrByte and all the other experienced Zenners ADVOCATE for this method of development)

The SMARTEST way to do that is this:

a)** keep your live store running, as-is.** With its own admin. Its own database. Its own folder of files on the server. Everything as-is.

b) build your new store in a temporary location. THIS IS ONLY FOR TESTING AND PREPARING FOR LIVE DEPLOYMENT.
This separate testing area will use a complete copy of your live site, in another subdirectory of your site, AND another database.
This is done following the main upgrade procedure as described in steps a), b), c) above, and in more detail at this FAQ article: http://www.zen-cart.com/content.php?...-zen-cart-site

DarkAngel:

Hoping he would like a new template too, there are many free ones here that can be edited to appear like his...or as close as possible. I did have to butcher it a bit to get somethings to work even in 1.3.9h soooo, I can most likely just add the files that match from the original store files. I shall see.So why not just build a NEW template that looks like the old one.. WHY keep messing with a template YOU KNOW to be problematic.. I can create a template that looks like ANY TEMPLATE from the Template Monstrosity folks.. I have said repeatedly that there is NOTHING special about their templates that cannot be recreated.. So if you know how, then DO IT..

DarkAngel:

I am hoping that one of the more experienced helpers here would chime in here too...DING!!

10 Dec 2013, 10:15 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: 1.3.9h to current version upgrade

DarkAngel:

Yes that confused me too but I was hoping that I did not need to do that. I was just (since it is root level and not in a folder to begin with) going to make a landing page that said the store was in maintenance. While I demolish it by removing all store core files and leaving the template over-ride ones there.

IF it is essential to create the store in a new directory, then when done undo the config file paths I can do that too but I was just going to install the store as if it had never been installed, then change out the DB with the old one....as is I were moving it from one host to another, as I just did with another persons store.

AHA that is just what I was trying to figure out....first do the upgrade then when done do the plugins as if it were a complete new store. I knew that ALL the plugins used now would need to be reinstalled with their newer version compatible with 1.5+

Totally, I know that this template is probably going to pitch a fit due to it being a template monster one from several years ago. Hoping he would like a new template too, there are many free ones here that can be edited to appear like his...or as close as possible. I did have to butcher it a bit to get somethings to work even in 1.3.9h soooo, I can most likely just add the files that match from the original store files. I shall see.

I am hoping that one of the more experienced helpers here would chime in here too....thanks for doing just that. I can usually follow instructions, especially if I write them down like in my post so I do not mess up---I tend to do things backwards at times, transposing when writing or doing steps plays havoc with ones mind...LOL

Only thing that jumps out at me in the moment is the plan to disassemble a functioning shop while the shop is being rebuilt and tested. That is time of lost reviews, sales, contacting, page checks by crawlers, etc... If lucky down for a few hours. If however, the site is built elsewhere (including offline) then the downtime can be reduced to a 15 mins or so while the files are being uploaded and verified in place. Naturally to also prepost that the site will be down for a designated period some point before (and while) the site is offline and being refreshed.

Better yet is to have both up, and simply. Redirect to the new site, then restore the old location to be. The new database and files, and thenundo the redirection. If done atright time, nearly seemless.

10 Dec 2013, 10:26 PM
#10
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

DivaVocals:

NO NO NO.. none of this..

an upgrade is really a rebuild as DrByte says here:[ http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading](http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading)

So here's the high level version of what you need to do

  1. BACKUP EVERYTHING!!! (DB and files)
  1. Create a development/test folder, and copy the Zen Cart v1.5.1 files there. Add to this ONLY your two configure files, along with your images, and downloads folders from your v1.3.9 backup.
  1. Create a development database
  1. dump your v1.3.9 DB into the development DB
  1. Follow the normal UPGRADE install path. (in addition to the DB upgrade, there is an optionwhich will update your configure files to the new 1.5.x format. USE IT!)

Once the install is complete, then re-install all your add-ons.

This is the the most efficient way to do an upgrade, and will work without a hitch.. Folks run into problems because they are trying to find a shortcut.. Trust me when I say.. THIS IS the shortcut..

IN red: use the old store config files ? nothing downloads since his are physical deliveries

development database? not same name as old? but a totally new one. then just use the old DB without installing new store.

then use upgrade path in installer

so when I get all this done and it works like it should do I then change the path in the config files? since basically I will be removing all his old files --- which I will put the store in maintenance mode first so no sales while I get the other ready --- then do I do the update db again.

sorry flu meds make one feel and sound stoopid...LOL

10 Dec 2013, 10:50 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

IN red: use the old store config files ?

Yes the v1.3.9 configure file.. you will need to edit the paths and URLs to match your dev store's URLs and file paths..

DarkAngel:

so when I get all this done and it works like it should do I then change the path in the config files? since basically I will be removing all his old files --- which I will put the store in maintenance mode first so no sales while I get the other ready --- then do I do the update db again.

No.. NO NO NO..:no::no::no:

So let me start by saying you will have to do the DB upgrade TWICE. Once to upgrade the development store, then again to upgrade the live store when the time comes..

Follow the steps I provided previously.. Better yet FOLLOW DrByte's instructions.. (which pretty much mirror my own) Once you have the upgraded development store setup and ALL of the modules restored and tested, template restored/revamped to make sure everything works, here's what I would do..

Remove EVERYTHING from the live store except the images and download folders and the configure files.

Copy over ALL the development store FILES to the live store. Do NOT copy the following from the dev store: the images and download folders and the configure files.

Copy over the Zen Cart install folder to the live store..

Do the ENTIRE upgrade again (both the DB upgrade and the configure files upgrade)

Install the SQL files for your modules. (if the modules have an auto installer file, you'll need to re-upload it and follow the instructions for re-executing the auto installer)

TEST to make sure everything works like in the dev store (it should if you do not DEVIATE)

take the store out of maintenance mode..

10 Dec 2013, 11:01 PM
#12
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

DivaVocals:

Yes the v1.3.9 configure file.. you will need to edit the paths and URLs to match your dev store's URLs and file paths..

No.. NO NO NO..:no::no::no:

So let me start by saying you will have to do the DB upgrade TWICE. Once to upgrade the development store, then again to upgrade the live store when the time comes..

Follow the steps I provided previously.. Better yet FOLLOW DrByte's instructions.. (which pretty much mirror my own) Once you have the upgraded development store setup and ALL of the modules restored and tested, template restored/revamped to make sure everything works, here's what I would do..

Remove EVERYTHING from the live store except the images and download folders and the configure files.

Copy over ALL the development store FILES to the live store. Do NOT copy the following from the dev store: the images and download folders and the configure files.

Copy over the Zen Cart install folder to the live store..

Do the ENTIRE upgrade again (both the DB upgrade and the configure files upgrade)

Install the SQL files for your modules. (if the modules have an auto installer file, you'll need to re-upload it and follow the instructions for re-executing the auto installer)

TEST to make sure everything works like in the dev store (it should if you do not DEVIATE)

take the store out of maintenance mode..

Yay I thinks I gots it...LOL

Thanks for your patience sweety...I am not usually this dense (only partially this dense). I will do just as instructed. I can only hope the web deities allow it to go without a hitch...but this month so far has been the pits for everything...LOL

10 Dec 2013, 11:07 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

Yay I thinks I gots it...LOL

Thanks for your patience sweety...I am not usually this dense (only partially this dense). I will do just as instructed. I can only hope the web deities allow it to go without a hitch...but this month so far has been the pits for everything...LOL

Great.. :smile:

Not taking shortcuts will make this go a LOT smoother.. Folks get thrown off by the steps involved, but it's really not as drawn out as it appears..

10 Dec 2013, 11:14 PM
#14
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

I swear reading through the steps did confoozle me which is why I wrote the simplified steps for my pea brain...but with your list and the direction page I think I got it...I hope...mebbe.

11 Dec 2013, 7:02 PM
#15
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

I swear reading through the steps did confoozle me which is why I wrote the simplified steps for my pea brain...but with your list and the direction page I think I got it...I hope...mebbe.

and that's the reason most people run into issues with the upgrade.. they try to SHORTEN the process.. If you do shortcut the steps I PROMISE it WILL take twice as long, and you WILL have issues.. The number of steps does NOT complicate things.. trying to cut out steps does.. good luck..

11 Dec 2013, 9:30 PM
#16
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

I swear, I do, that I followed the steps to the letter and had to do it 5 times...before it behaved...sheesh I feel like a dummy dodo cause I still have no clue what went wrong.

I do know that with this version of store his monster template does not want to function...will need to look through his zip file for the template to see if I need to upload other things for it too.

Sure hope the live store behaves when I get to it...LOL

11 Dec 2013, 10:14 PM
#17
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: 1.3.9h to current version upgrade

DarkAngel:

I swear, I do, that I followed the steps to the letter and had to do it 5 times...before it behaved...sheesh I feel like a dummy dodo cause I still have no clue what went wrong.

I do know that with this version of store his monster template does not want to function...will need to look through his zip file for the template to see if I need to upload other things for it too.

Sure hope the live store behaves when I get to it...LOL

Gonna suggest this again.. but NOW would be an EXCELLENT time to ditch the Template Monstrosity template and "grow your own". You can use the Barebones template as a starting point and simply recreate the Template Monstrosity template's look/feel

12 Dec 2013, 5:29 AM
#18
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

DivaVocals:

Gonna suggest this again.. but NOW would be an EXCELLENT time to ditch the Template Monstrosity template and "grow your own". You can use the Barebones template as a starting point and simply recreate the Template Monstrosity template's look/feel

Great minds ya know
LOL I did almost that totally...I cheated and yes made a new template with all the goodies just like the "monster" (boy do they choose that name right LOL)

It looks just like the one he has in live store and ever so much more friendly.

20 Dec 2013, 7:47 AM
#19
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: 1.3.9h to current version upgrade

I am at my wits end! Have been at this since 10pm and it is now almost 2 am.

I did everything as instructed on the live store. It would not let me see the store/admin at all, I got a totally blank page, no errors nothgin.

Everything i did I even put back the original 1.3.9h files and made sure the database was alright ---could use store again. I then removed the old files and replaced them with the upgraded ones from test store...leaving the 2 config files alone.

Ran the installer and again no errors but get white page with nothing.

I tried restoring the old database and the myphpadmin just won't have it.

host is going to replace the database and then I will try again to upgrade. I will attempt to see if by chance something got corrupt on upload or went missing.

just came in to do a progress report.

20 Dec 2013, 11:53 AM
#20
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: 1.3.9h to current version upgrade

DarkAngel:

I am at my wits end! Have been at this since 10pm and it is now almost 2 am.

I did everything as instructed on the live store. It would not let me see the store/admin at all, I got a totally blank page, no errors nothgin.
The only time I remember getting a whitescreen with no debug logfile is when I misspelled the folder name for the DIR_FS_LOGS constant in the /includes/configure.php file. Remember, too, that while v1.3.9 placed the logs in the /cache folder v1.5.1 now places them in the /logs folder.