Zen Cart Logo
Forums / Upgrading to 1.5.x / Upgrade from 1.5.5 to 1.5.7 fails

Upgrade from 1.5.5 to 1.5.7 fails

Views: 2,602

Results 1 to 11 of 11
25 Aug 2020, 6:44 PM
#1
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Upgrade from 1.5.5 to 1.5.7 fails

I have done several upgrades to 1.5.7, but this latest one is yanking my chain a little bit. After I pull over the old database, it gives me an error saying "Could not update to version 1.5.7. We detect that you currently have v1.5.5, and must perform the updates to get to version 1.5.6 first.", yet right up above that it says "Upgrade to version 1.5.6 completed."

I received 3 different log files and they all show everything passed except for a few something like the following:

Aug 25 2020 17:20 -- checkIniGet
FAILED
(
    [inigetName] => output_buffering
    [expectedValue] => 1
)

Any ideas? THANKS!

25 Aug 2020, 8:18 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Upgrade from 1.5.5 to 1.5.7 fails

I'm guessing your database has had some alterations made to it that the zc_install system checks aren't compatible with.
Here's the list of things it's checking for in 155 and 156 as reasonable indicators that the upgrade has been applied for those versions:
https://github.com/zencart/zencart/blob/b3ed7bc02a0d4fbad68e7a2f086b79d05d5ee33a/zc_install/includes/systemChecks.yml#L264-L310
If you've altered the schema of those checks, you'll need to either update that yml file temporarily so it matches what's in your db, or remove that check from the yml file.

25 Aug 2020, 10:03 PM
#3
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: Upgrade from 1.5.5 to 1.5.7 fails

DrByte:

I'm guessing your database has had some alterations made to it that the zc_install system checks aren't compatible with.
Here's the list of things it's checking for in 155 and 156 as reasonable indicators that the upgrade has been applied for those versions:
https://github.com/zencart/zencart/blob/b3ed7bc02a0d4fbad68e7a2f086b79d05d5ee33a/zc_install/includes/systemChecks.yml#L264-L310
If you've altered the schema of those checks, you'll need to either update that yml file temporarily so it matches what's in your db, or remove that check from the yml file.

Thats weird because it is an almost vanilla site with backup mysql database and sales report installed.

Thanks!

26 Aug 2020, 11:50 AM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,278
Plugin Contributions:
37

Re: Upgrade from 1.5.5 to 1.5.7 fails

For the record, this

VALUES ('categoriesProductListing', 'BOX_CATALOG_CATEGORIES_PRODUCTS', 'FILENAME_CATEGORY_PRODUCT_LISTING', '', 'catalog', 'Y', 1);  1062: Duplicate entry 'categoriesProductListing' for key 'page_key'

was the issue. Once cleaned up install ran w/o issue.

26 Aug 2020, 12:10 PM
#5
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,278
Plugin Contributions:
37

Re: Upgrade from 1.5.5 to 1.5.7 fails

So I fixed Judy's easy by changing the sort order and it ran. Now I have one, same thing and I cannot resolve it. I even downloaded 1.5.6c and ran zc_install successfully... then run 1.5.7 install and it tells me the version is still 1.5.5 and stops like below

Attachment 19158

Not really sure what to do here, the error is the same

VALUES ('categoriesProductListing', 'BOX_CATALOG_CATEGORIES_PRODUCTS', 'FILENAME_CATEGORY_PRODUCT_LISTING', '', 'catalog', 'Y', 1);  1062: Duplicate entry 'categoriesProductListing' for key 'page_key'
9 Apr 2022, 12:12 AM
#6
balaji avatar

balaji

New Zenner

Join Date:
Nov 2009
Location:
Chennai, India
Posts:
50
Plugin Contributions:
0

Re: Upgrade from 1.5.5 to 1.5.7 fails

mprough:

So I fixed Judy's easy by changing the sort order and it ran. Now I have one, same thing and I cannot resolve it. I even downloaded 1.5.6c and ran zc_install successfully... then run 1.5.7 install and it tells me the version is still 1.5.5 and stops like below

Attachment 19158

Not really sure what to do here, the error is the same

VALUES ('categoriesProductListing', 'BOX_CATALOG_CATEGORIES_PRODUCTS', 'FILENAME_CATEGORY_PRODUCT_LISTING', '', 'catalog', 'Y', 1); 1062: Duplicate entry 'categoriesProductListing' for key 'page_key'


Hi
Have you resolved this?  What was the solution tried?
I had been trying to upgrade the db and getting stuck with this message.
Thanks
9 Apr 2022, 11:19 AM
#8
lat9 avatar

lat9

Administrator

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

Re: Upgrade from 1.5.5 to 1.5.7 fails

Also, check the site's /logs sub-directory to see if there are any zcInstall*.log files. The most recent one might (??) have an indication of what the root cause of the message is.

9 Apr 2022, 11:58 AM
#9
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Upgrade from 1.5.5 to 1.5.7 fails

In a previous case similar to yours, the problem was three-fold. All in the old database.

Make sure the admin table's admin_pass AND the customers table's customers_password are both set to varchar 255
Make sure there are no remaining dates using the old 0000-00-00 00:00:00 format. More on that and the location of a file to use at https://docs.zen-cart.com/user/upgrading/date_standardization/

10 Apr 2022, 12:04 AM
#10
balaji avatar

balaji

New Zenner

Join Date:
Nov 2009
Location:
Chennai, India
Posts:
50
Plugin Contributions:
0

Re: Upgrade from 1.5.5 to 1.5.7 fails

Hi
Thank you for the quick response. I have updated the date and checked for any customised record. It didnt resolve this issue still.

The log files shows two errors as follows :

[10-Apr-2022 01:58:14 Europe/Berlin] MySQL error 1062 encountered during zc_install:
Duplicate entry 'categoriesProductListing' for key 'page_key'
VALUES ('categoriesProductListing', 'BOX_CATALOG_CATEGORIES_PRODUCTS', 'FILENAME_CATEGORY_PRODUCT_LISTING', '', 'catalog', 'Y', 1);

[10-Apr-2022 01:58:14 Europe/Berlin] MySQL error 1054 encountered during zc_install:
Unknown column 'e.pages_title' in 'field list'
LEFT JOIN languages l ON 1;

10 Apr 2022, 12:24 AM
#11
balaji avatar

balaji

New Zenner

Join Date:
Nov 2009
Location:
Chennai, India
Posts:
50
Plugin Contributions:
0

Re: Upgrade from 1.5.5 to 1.5.7 fails

Hi Again,
Schema check helped. I checked for 1.5.5 instead of 1.5.6 as the systems was showing the db was 1.5.5.
Found issue with field type of val_function field in the configuration table.
On changing the field type of val_function from mediumtext to TEXT the issue got resolved.
Thank you all for the help.
Regards
Balaji