Zen Cart Logo
Forums / Upgrading to 1.5.x / when installing does not give UPGRADE OPTION

when installing does not give UPGRADE OPTION

Views: 1,938

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

when installing does not give UPGRADE OPTION

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,809
Plugin Contributions:
15

Re: when installing does not give UPGRADE OPTION

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.

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

Re: when installing does not give UPGRADE OPTION

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,809
Plugin Contributions:
15

Re: when installing does not give UPGRADE OPTION

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:02 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: when installing does not give UPGRADE OPTION

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.

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

Re: when installing does not give UPGRADE OPTION

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,513
Plugin Contributions:
176

Re: when installing does not give UPGRADE OPTION

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.

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

Re: when installing does not give UPGRADE OPTION

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,513
Plugin Contributions:
176

Re: when installing does not give UPGRADE OPTION

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

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

Re: when installing does not give UPGRADE OPTION

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,513
Plugin Contributions:
176

Re: when installing does not give UPGRADE OPTION

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?

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

Re: when installing does not give UPGRADE OPTION

Attachment 12079Attachment 12080

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

drbyte

Sensei

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

Re: when installing does not give UPGRADE OPTION

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.

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

Re: when installing does not give UPGRADE OPTION

Attachment 12081Attachment 12082

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

drbyte

Sensei

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

Re: when installing does not give UPGRADE OPTION

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.

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

Re: when installing does not give UPGRADE OPTION

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.