Zen Cart Logo
Forums / Upgrading to 1.5.x / My first time upgrading

My first time upgrading

Views: 4,642

Results 1 to 20 of 42
22 Mar 2022, 8:31 PM
#1
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

My first time upgrading

Hi, I'd like to upgrade my 1.54 site to 1.57d. I have some really noob questions here, sorry. I'm reading the implementation guide and it's not clear to me what I need to do.

I FTP'd all the 1.57 files into a "demo" folder. I went to my host and created a demo database. Do I treat it as a "new install" from there?

If I go to mysite.com/demo, I see the install verbiage:


This is your first time using Zen Cart® and you have not yet completed the normal installation procedures.
If this is the case for you, CLICK HERE to begin installation.

This is not your first time using Zen Cart® and you have previously completed the normal installation procedures.
If this is the case for you, then...

Your /includes/configure.php and/or /admin/includes/configure.php files contain invalid path information and/or invalid database-connection information.


Do I do first time install "click here"?

When it's done, where is the demo store's url, is it mysite.com/demo?

Does the install create the configure.php file?

Thanks

22 Mar 2022, 8:51 PM
#2
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Looks like, yes, treat it as new install. Seemed to work. Mod's feel free to delete this thread.

22 Mar 2022, 9:22 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

Not to quick there. Yes, initially treat as a new install... but you will want to come back (eventually) and try a database upgrade with the contents of your live site out into this new demo database... This demo location is all about going through the upgrade process so that when you are actually ready to upgrade the live site the visitors may see a blip of an page from anywhere of a few minutes to possibly an hour depending on what you have to do to finalize the upgrade.

Can also think of it this way, right now you have a test site that has all of the default information including the default settings. Ideally everything should work without any issues. Then comes the things that make the site yours. The sequence is somewhat up to you and depends on what changes you want made.

But... you are on a good start to doing the right thing, updating your site.

23 Mar 2022, 2:20 AM
#4
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Thanks. I hope I understand to process. I've got the demo site installed. Next I will try to install my template (Westminster New) into that subfolder. After that I will try redoing the tweaks I did to make it my own. My site is simple, I think it should be just changing out images and text. Then payment modules and hope they work (the whole reason for the upgrade is they stop working when hosting company upgrades php on me.. they won't let me live at 5.6 forever)

If I understand you, I will at some point import my old database. This would bring my old customer and order lists back, if I understand correctly. Sound correct?

So, when my "demo" folder is all nice and ready, do I just replace the top level (live site) files with the ones in the demo folder or do I have to do everything again? My weak understanding so far makes me think most of the files don't change during install, just the database and the configure.php?

23 Mar 2022, 4:45 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

CosmosK:

Thanks. I hope I understand to process. I've got the demo site installed. Next I will try to install my template (Westminster New) into that subfolder. After that I will try redoing the tweaks I did to make it my own. My site is simple, I think it should be just changing out images and text. Then payment modules and hope they work (the whole reason for the upgrade is they stop working when hosting company upgrades php on me.. they won't let me live at 5.6 forever)

  1. If I understand you, I will at some point import my old database. This would bring my old customer and order lists back, if I understand correctly. Sound correct?

2. So, when my "demo" folder is all nice and ready, do I just replace the top level (live site) files with the ones in the demo folder or do I have to do everything again? My weak understanding so far makes me think most of the files don't change during install, just the database and the configure.php?

  1. Correct. Understand though that when that "old" (live) database content is brought into your demo location, before really accessing anything, the database needs to be updated... YES, there is likely to be an error generated when loading the main page of the site if this update hasn't been performed. Finding that "right" setting that allows the site to be in maintenance mode but not generate a log file when visited is part of that "upgrade" process.

  2. In a way yes, but I am always cautious about just nodding my head and agreeing... "REPLACE" in my mind means to take the folder(s) and contents out of the way and place the new file(s)/folder(s) where they are expected to be and where/when able to allow the system to create/recreate the configure file(s)... This is something "expected" to automatically happen during an upgrade (zc_install process to UPGRADE the data). Also, don't be afraid to ask more questions about this especially if there is something not understood. There are several individuals that will describe the process in different ways. There's a lot of variables and things that can affect the process.

23 Mar 2022, 5:22 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: My first time upgrading

mc12345678:

Not to quick there. Yes, initially treat as a new install... but you will want to come back (eventually) and try a database upgrade with the contents of your live site out into this new demo database... This demo location is all about going through the upgrade process so that when you are actually ready to upgrade the live site the visitors may see a blip of an page from anywhere of a few minutes to possibly an hour depending on what you have to do to finalize the upgrade.

Can also think of it this way, right now you have a test site that has all of the default information including the default settings. Ideally everything should work without any issues. Then comes the things that make the site yours. The sequence is somewhat up to you and depends on what changes you want made.

But... you are on a good start to doing the right thing, updating your site.There is so much that is different from when your site was built and the current 1.5.7d that I would abandon most everything on the old site except images and the defiine_pages that made up the old site. Be sure to check all the define_pages for proper content and current formatting.

On the database, there are at least two things you will neee to address with the 1.5.4 database. The date format used back then of 0000-00-00 00:00:00 will stop the database upgrade.

Also, there are a couple of database places that may need to be updated. Check https://www.zen-cart.com/showthread.php?228672-Errors-on-1-5-1-to-1-5-7c for what I had to do.

23 Mar 2022, 5:35 PM
#7
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

I am planning to delete all the top level files and move in the "demo" files to the top level then install. I think I can change mostly images if the template still works and I'll mostly be there. Maybe I just delete the configure.php and do a fresh install at the top level so they can be recreated.

Let me ask this: Any reason to not just ditch the old database? I can live without old customers and orders being retained. Returning customers can create a new account. I have copies of all my old order in pdf so I can look stuff up if need be.

Thanks

23 Mar 2022, 5:42 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: My first time upgrading

CosmosK:

I am planning to delete all the top level files and move in the "demo" files to the top level then install. I think I can change mostly images if the template still works and I'll mostly be there. Maybe I just delete the configure.php and do a fresh install at the top level so they can be recreated.

Let me ask this: Any reason to not just ditch the old database? I can live without old customers and orders being retained. Returning customers can create a new account. I have copies of all my old order in pdf so I can look stuff up if need be.

Thanks
Somehow I can't jump on the "drop the old customers" bandwagon. It's often important simply for a customer to find the item they ordered two years ago so they can replace it.

It so much simpler to do it the other way. Believe me, you will spend more time trying to "massage" the old database. Than it would take to get it ready for upgrade.

My glitches were with 1.5.1. Not all of the changes may be needed with the 1.5.x database.

23 Mar 2022, 5:47 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: My first time upgrading

Seconded. Updating the database is the easiest part of the upgrade; it's completely taken care of for you in Zen Cart.

23 Mar 2022, 6:43 PM
#10
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

dbltoe:

It so much simpler to do it the other way. Believe me, you will spend more time trying to "massage" the old database. Than it would take to get it ready for upgrade.

Sorry, I'm seeing two ways. 1. Do nothing, old database dies. 2. Update/import/?? the old database at some point. Is there a third method? Clearly, I'm not super versed on databases. Yesterday, I thought maybe I didn't have one, so could skip that part of the instructions ;)

23 Mar 2022, 7:49 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

CosmosK:

Sorry, I'm seeing two ways. 1. Do nothing, old database dies. 2. Update/import/?? the old database at some point. Is there a third method? Clearly, I'm not super versed on databases. Yesterday, I thought maybe I didn't have one, so could skip that part of the instructions ;)

A third way is a nightmare to get right and has the possibility of blowing away your net presence (as does completely starting with a new database) bringing over only portions of the database such as product and/or orders... remember your product is known on the internet by the browser path to get to it. If your current product of 132 becomes 5, well in for a tough climb back to the search engines. Not a forever loss, but there are ways to take little to no hit as described above by reusing the existing database content.

As to the date issue described the lessons that dbltoe learned the hard way (at least associated with the Zen Cart core data) has been addressed in the database upgrade process. Again that's why that "step" should be practiced on the demo site...

23 Mar 2022, 8:40 PM
#12
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Sorry, just want to be clear.

So, I will install the new site and in the install I will point to the old database? Then follow instruction in implementation guide: 6.2 Using zc_install to do The Database Upgrade Step of a Site Upgrade ?

Does it hurt anything to use the old database on my trial run? Can the live site and the demo site both use it?

23 Mar 2022, 8:54 PM
#13
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

CosmosK:

Sorry, just want to be clear.

So, I will install the new site and in the install I will point to the old database? Then follow instruction in implementation guide: 6.2 Using zc_install to do The Database Upgrade Step of a Site Upgrade ?

Does it hurt anything to use the old database on my trial run? Can the live site and the demo site both use it?

If the new code takes action to update the contents of the database that is actively being used by the live (old) site, then the old site will not work correctly. This is why I commented on importing the contents of the database from the live site into the database being used by the new code.

23 Mar 2022, 9:02 PM
#14
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

How do you do that? The instructions I'm looking at don't say as far as I can tell. Can I copy the database for use on the trial run, then repeat the process (if it works) when I do the actual upgrade?

Thanks

23 Mar 2022, 9:08 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

CosmosK:

How do you do that? The instructions I'm looking at don't say as far as I can tell. Can I copy the database for use on the trial run, then repeat the process (if it works) when I do the actual upgrade?

Thanks

Yes.

Check out try: https://docs.zen-cart.com/user/running/backup/#step-2-backup-your-database

Your situation may be slightly different as far as options but there are plenty of other online resources to address your specific situation or setup.

As always the more detail provided the more others here can help.

23 Mar 2022, 9:13 PM
#16
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Ok, thanks! I will try backing up the existing, creating a new, then importing the old into it, then installing a demo site with it. I really appreciate the help.

23 Mar 2022, 9:36 PM
#17
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Well, I did that. backed up database, created new, then imported the backup into it. Installed zc into a new subfolder, pointed to new database... and blank. Nothing seems to have come in. Does that sound right?

23 Mar 2022, 11:01 PM
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: My first time upgrading

You have to go through zc_install on the new database, since the schema changes from release to release.

24 Mar 2022, 1:09 AM
#19
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: My first time upgrading

Yes, I redid the web install of zc and pointed it to the new database which is a copy of the currently used one. It had me setup a user and password. Both the new configure.php files have the new database indicated.

I'm not sure what I should see, but it seems completely blank. I was hoping something would carry over, but nothing seems to have. Thanks

24 Mar 2022, 1:54 AM
#20
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: My first time upgrading

CosmosK:

Yes, I redid the web install of zc and pointed it to the new database which is a copy of the currently used one. It had me setup a user and password. Both the new configure.php files have the new database indicated.

I'm not sure what I should see, but it seems completely blank. I was hoping something would carry over, but nothing seems to have. Thanks

When you look at the files of your old/live store. Look in the file includes/configure.php. what does the line look like where there is: DB_PREFIX?