Forums / Upgrading to 1.5.x / My database needs patching from 1.3.9 to 1.5.0

My database needs patching from 1.3.9 to 1.5.0

Started by in2deep on 4 May 2012, 11:11 PM · Views: 2,898

Results 1 to 7 of 7
4 May 2012, 11:11 PM
#1
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

My database needs patching from 1.3.9 to 1.5.0

I've installed 1.5.0 via Hostgator's QuickInstall. The install was painless, as was the application of the theme I'm using. Ran into problems when I did the database import. The database is a database I put together on a 1.3.9 site that I had.

I'm getting a message on the Admin login screen that says:
database upgrade required. please run the 1.3.9-to-1.5.0 upgrade via zc_install

On the website itself there is a red bar up top that says:
Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels.

The problem I'm having is that I can't access the Admin section AND there isn't a zc_install file on the server because I used the host's QuickInstall feature.

Need some help. What's my next move here? Do I download 1.5 and try to use the install folder or do I delete what I have, manual install 1.3.9, then apply database and finally upgrade to 1.5 and then apply theme?

4 May 2012, 11:46 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: My database needs patching from 1.3.9 to 1.5.0

Yes, if you're going to use an old database on a new site, you'll need to download the original Zen Cart code, upload the zc_install folder to your site, and run the database-upgrade step.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2012, 12:01 AM
#3
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: My database needs patching from 1.3.9 to 1.5.0

I have the zc_install folder downloaded. How do you run the database upgrade step?

5 May 2012, 12:25 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: My database needs patching from 1.3.9 to 1.5.0

Let's step back a bit.

You're doing an upgrade here.

You need to follow the upgrade instructions: https://www.zen-cart.com/upgrade

There are all manner of things you've not disclosed here, including the list of changes you made to the old 1.3.9 site you're upgrading from, the list of addons you'd added to it, and more. The database-upgrade will NOT take those into account. And installing old addons on newer versions can also be problematic.

Also, what you're talking about here is also essentially "moving to another server" ... even if it's "from my local PC, to my webserver". And it's not recommended to switch versions in-the-midst-of-an-upgrade such as you're attempting here. One of the biggest problems there is that your next post is going to be "it worked fine on my old one, but now it's not working on the new one; how do I fix it?" ... but when you're changing servers AND upgrading at the same time there are an exponential number of increased factors which could cause the problems you have. Keep that in mind as you proceed.

Running zc_install to do database-upgrade is described in the upgrade instructions mentioned above.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2012, 6:10 AM
#5
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: My database needs patching from 1.3.9 to 1.5.0

I've added the zc_install folder and ran into an issue already. The name of the admin folder has been changed, the installer is giving me an error message:
/admin/includes/configure.php does not exist

I tried renaming the folder back to admin and changed permissions on the two configure files and edited the admin lines with the new (stock) folder name etc. When I did it this way it didn't like the password I entered for the database. I'm certain I have the pw written down corectly. What am I missing?

5 May 2012, 6:39 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: My database needs patching from 1.3.9 to 1.5.0

For a database-upgrade it's not necessary to rename the admin folder to 'admin'. That message doesn't prevent you from choosing the "database upgrade" option.

The password it's requesting is the admin login password you used in the old 1.3.9 database that you imported. It's not the password you used when you did the 1.5.0 install. You wiped out the 1.5.0 password when you replaced the database content with the 1.3.9 content.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2012, 7:28 PM
#7
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: My database needs patching from 1.3.9 to 1.5.0

That did it, thank you!