If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / 1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

Started by swguy on 11 Feb 2019, 2:50 PM · Views: 6,413

Results 1 to 4 of 4
11 Feb 2019, 2:50 PM
#1
swguy avatar

swguy

Administrator

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

1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

Users of Advanced Shipper:

When doing your upgrade from 1.5.4 or lower to 1.5.5 or higher, you might get stuck in zc_install with the log

[11-Feb-2019 09:23:52 America/New_York] MySQL error 1406 encountered during zc_install:
Data too long for column 'shipping_method' at row 12270
ALTER TABLE orders MODIFY shipping_method VARCHAR(255) NOT NULL DEFAULT '';

Your symptom will be the message in zc_install which will be something like:
"Cannot upgrade to 1.5.6; your database must be updated to 1.5.5 first."

Your best bet is probably to remove the check in includes/systemChecks.yml (line 299-303).

This issue was originally reported here:
https://www.zen-cart.com/showthread.php?224820-Database-upgrade-fails-when-upgrading-my-1-5-3-to-1-5-6

I'm just adding this thread to help people searching for this problem.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

12 Feb 2019, 7:55 AM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: 1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

Thanks. Appreciated.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

12 Apr 2020, 8:34 PM
#3
swguy avatar

swguy

Administrator

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

Re: 1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

This issue has been resolved by PR #3226.
https://github.com/zencart/zencart/pull/3226

Users upgrading from 1.5.4 or below can pull this in to their copy of 1.5.6, or wait for 1.5.7, which will include this fix.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

21 Feb 2023, 11:35 AM
#4
swguy avatar

swguy

Administrator

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

Re: 1.5.5 and 1.5.6 upgrade issue for Advanced Shipper addon Users

Update (several years later): this allows the upgrade to complete but creates an upgrade debug log.
For users upgrading through 1.5.5 or 1.5.6 to a newer version of Zen Cart who have Advance Shipper installed, it might be best to comment out

ALTER TABLE orders MODIFY shipping_method VARCHAR(255) NOT NULL DEFAULT '';

in

zc_install/sql/updates/mysql_upgrade_zencart_156.sql
zc_install/sql/updates/mysql_upgrade_zencart_155.sql

If you have entries in the shipping_method column that are too long for the ALTER TABLE to work.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.