Prerequisites
Describe the bug and add attachments
Hello,
I tried to update prestashop three times and failed, report was already sent after update.
All modules were up to date. Non essential modules were disabled.
First and second attempt – fail with many warnings and errors:
But main error was:
[2026-02-04 00:26:47] CRITICAL - ErrorHandler - home/www/domain.cz/www/test.domain.cz/classes/db/DbPDO.php line 149 - PrestaShopException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json NOT NULL, description varchar(255) COLLATE utf8mb4_unicode_ci NOT NU' at line 8…
Failure during DB command (87 query lefts): CREATE TABLE IF NOT EXISTS PREFIX_api_client
Configuration:
PHP 8.4.16, DB: 10.1.48-MariaDB-0+deb9u2, InnoDB, DbPDO, memory limit: 512M, time of execution: 180s, max. file: 60M, Update assistant: 7.5.1
I solved this problem by updating the database to 11.8.3-MariaDB-0+deb13u1 from Debian-log.
Third attempt – fail with many warnings and errors:
But main error was:
[2026-02-06 13:43:10] INFO - UpdateDatabase - Probíhá aktualizace databáze. Zbývá 71 dotazů
[2026-02-06 13:43:11] CRITICAL - ErrorHandler - /home/www/domain.cz/www/test.domain.cz/classes/db/DbPDO.php line 149 - PrestaShopException: SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes
Failure during DB command (71 query lefts): ALTER TABLE PREFIX_orders CHANGE reference reference VARCHAR(255);
Configuration:
PHP 8.4.16, DB: 11.8.3-MariaDB-0+deb13u1 from Debian-log, InnoDB, DbPDO, memory limit: 512M, time of execution: 180s, max. file: 60M, Update assistant: 7.5.1
Please give me advice on how to solve this problem.
Thank you
Best regards
PN
Expected behavior
Successful update. :-)
Steps to reproduce
Standard update procedure.
Backup without images, Disable non-essential modules - yes, Regenerate emails - yes.
PrestaShop version(s) where the bug happened
8.2.1
How you installed PrestaShop
No response
PHP version(s) where the bug happened
8.4.16
Your company or customer's name goes here (if applicable).
No response
Prerequisites
Describe the bug and add attachments
Hello,
I tried to update prestashop three times and failed, report was already sent after update.
All modules were up to date. Non essential modules were disabled.
First and second attempt – fail with many warnings and errors:
But main error was:
[2026-02-04 00:26:47] CRITICAL - ErrorHandler - home/www/domain.cz/www/test.domain.cz/classes/db/DbPDO.php line 149 - PrestaShopException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json NOT NULL,descriptionvarchar(255) COLLATE utf8mb4_unicode_ci NOT NU' at line 8…Failure during DB command (87 query lefts): CREATE TABLE IF NOT EXISTS
PREFIX_api_clientConfiguration:
PHP 8.4.16, DB: 10.1.48-MariaDB-0+deb9u2, InnoDB, DbPDO, memory limit: 512M, time of execution: 180s, max. file: 60M, Update assistant: 7.5.1
I solved this problem by updating the database to 11.8.3-MariaDB-0+deb13u1 from Debian-log.
Third attempt – fail with many warnings and errors:
But main error was:
Failure during DB command (71 query lefts): ALTER TABLE
PREFIX_ordersCHANGEreferencereferenceVARCHAR(255);Configuration:
PHP 8.4.16, DB: 11.8.3-MariaDB-0+deb13u1 from Debian-log, InnoDB, DbPDO, memory limit: 512M, time of execution: 180s, max. file: 60M, Update assistant: 7.5.1
Please give me advice on how to solve this problem.
Thank you
Best regards
PN
Expected behavior
Successful update. :-)
Steps to reproduce
Standard update procedure.
Backup without images, Disable non-essential modules - yes, Regenerate emails - yes.
PrestaShop version(s) where the bug happened
8.2.1
How you installed PrestaShop
No response
PHP version(s) where the bug happened
8.4.16
Your company or customer's name goes here (if applicable).
No response