If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / when installing does not give UPGRADE OPTION

when installing does not give UPGRADE OPTION

Started by irishshopper on 6 Mar 2013, 4:44 PM · Views: 1,995

Results 1 to 16 of 16
6 Mar 2013, 4:44 PM
#1
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #1 by irishshopper

https://www.irishshopper.ie

Am trying to upgrade from 1.3.9h to 1.5.1.

Exported the old database and inported it to new database and changed the 2 configure files OK but each time I run zc_install it only gives me the INSTALL & recheck options.

How can I check what the problem is ?

6 Mar 2013, 5:37 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

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

Post #2 by dbltoe

A common problem is incorrectly reading the directions provided with ZC. For instance, with a 1.5.1 install, there is no reason to edit any configure.php file unless there is a strange SSL link.

Try looking at http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading, decide which way you want to go, and follow the directions explicitly.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Mar 2013, 7:08 PM
#3
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #3 by irishshopper

Before trying the zc_install went in the good old fashioned way and changed the file permissions on all the image files etc etc to 777 and renamed and changed the configure files just the way I always did in past when having full install of 1.3.9 versions.

Should I not have done any of above ?

6 Mar 2013, 7:36 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

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

Post #4 by dbltoe

Nothing against you but, why are folks so insistent on "doing it my way" or taking some suggested shortcut.

If this were your 100th install, I might agree that there are some shortcuts that you KNOW will always work for you.

That said, with changes that occur regularly in ZC files. There's no way I would update a sight without going to the link I gave and follow the instructions. If the decision was to go with other than DrByte's "Upgrade and Use" version, I would again follow the instructions in the docs folder of the ZC version chosen.

And, as ajeh is oft heard to say, "You might even learn something along the way." As each site will be unique, I seldom do an install/upgrade without learning something.:yes:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Mar 2013, 10:02 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

irishshopper:

www.irishshopper.ie

Am trying to upgrade from 1.3.9h to 1.5.1.

Exported the old database and inported it to new database and changed the 2 configure files OK but each time I run zc_install it only gives me the INSTALL & recheck options.

How can I check what the problem is ?

Sounds like a classic case of using different prefixes in the old site and new site. Must use the same prefix in the new site if you want it to correctly refer to the tablenames you import .... unless you manually rename all the approx 100 tables by hand, which is not recommended.

.
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.

6 Mar 2013, 10:05 PM
#6
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #6 by irishshopper

Confused by this latest post !!

Would not have a clue how to do this so went by the 1.5.1 instructions which are conflicting.

One parts gives details of files that need changed to 777 another part never mentions this. Both parts talk about editing the 2 configure.php files with the new database details etc which has been done.

dbltoe:

Nothing against you but, why are folks so insistent on "doing it my way" or taking some suggested shortcut.

If this were your 100th install, I might agree that there are some shortcuts that you KNOW will always work for you.

That said, with changes that occur regularly in ZC files. There's no way I would update a sight without going to the link I gave and follow the instructions. If the decision was to go with other than DrByte's "Upgrade and Use" version, I would again follow the instructions in the docs folder of the ZC version chosen.

And, as ajeh is oft heard to say, "You might even learn something along the way." As each site will be unique, I seldom do an install/upgrade without learning something.:yes:

6 Mar 2013, 10:09 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

irishshopper:

One parts gives details of files that need changed to 777 another part never mentions this. Both parts talk about editing the 2 configure.php files with the new database details etc which has been done.
The configure.php files are usually set to read-only, so making them writable is necessary before being able to save changes/edits made to them. "777" is a "globally writable" permissions mask, hence the mention of 777. Use whatever is needed by your server to make the files writable. Usually 755 is sufficient nowadays. Your hosting company can tell you what the correct number is.

.
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.

6 Mar 2013, 10:09 PM
#8
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #8 by irishshopper

That will be the problem re the prefix !!

The old database had a zen_ prefix but the instructions for 1.5.1 recommend NO PREFIX so I went with that recommendation.

I take I need to add in these changes in the two configure.php files.

How do I change it in the new Database or do I need to create a brand new database now with zen_ prefix ?

6 Mar 2013, 10:12 PM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

irishshopper:

That will be the problem re the prefix !!

The old database had a zen_ prefix but the instructions for 1.5.1 recommend NO PREFIX so I went with that recommendation.

I take I need to add in these changes in the two configure.php files.

How do I change it in the new Database or do I need to create a brand new database now with zen_ prefix ?

Sigh. Your questions sound like you're overcomplicating it.
Since your old site uses the zen_ prefix, you'll need to use that in your new test site.
You can do that in one of two ways:
a) during zc_install, type in zen_ for the database-table-prefix setting instead of leaving it blank
b) or, after install change the DB_PREFIX setting in both configure.php files to say 'zen_' instead of ''
c) renaming all the tables is pointless since your actual live upgrade will still use the current live database. Your test area is simply for testing to make sure you've got all your compatibilities working etc ... assuming you're following http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

.
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.

6 Mar 2013, 10:29 PM
#10
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #10 by irishshopper

Have changed the prefix to zen_ in both configure files and can confirm this is the prefix used in the tables in the database but still when I try to run zc_install no upgrade button appearing.

6 Mar 2013, 10:57 PM
#11
drbyte avatar

drbyte

Sensei

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

Post #11 by drbyte

On the zc_install screen, it should show you the db info at the top of the inspection screen. Does it show the correct prefix there?

If the upgrade button isn't showing, then it's not able to find the Zen Cart tables in the database you specified in DB_XXXXX settings in the /includes/configure.php file.

And your current site is apparently unable to connect to the database. Are you messing with a live site, instead of staging your upgrade in a test environment first?

.
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.

7 Mar 2013, 10:26 AM
#12
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #12 by irishshopper

Attachment 12079Attachment 12080

7 Mar 2013, 10:38 AM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

Your database credentials have not been specified correctly.

Add the &debug=ON parameter to your URL after you get to that inspect page, like the following, and press Enter to reload the page:
zc_install/index.php?main_page=inspect&debug=ON

At the top of the page you'll see your database credentials listed and an error message saying it could not connect using the credentials provided.

Once you give it valid database credentials it will work fine.

.
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.

7 Mar 2013, 11:18 AM
#14
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #14 by irishshopper

Attachment 12081Attachment 12082

7 Mar 2013, 11:23 AM
#15
drbyte avatar

drbyte

Sensei

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

Post #15 by drbyte

Exactly.

Fix the DB_XXXXX credentials in your /includes/configure.php file.
Clearly they're wrong, because even your storefront says the database cannot connect.

.
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.

10 Mar 2013, 12:11 PM
#16
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Post #16 by irishshopper

Now been able to get the UPGRADE button to appear and have upgraded this.

Site https://www.irishshopper.ie appears fine but cannot get in to the admin area.

Note have changed permissions of two configure files to 444 and renamed admin folder admin1 but https://www.irishshopper.ie/admin1 get the standard ZenCart error screen.