We’ve just moved a client’s website from an older server Ubuntu 14 PHP 5 to Ubuntu 18.04, php 7.2
MySQL 5.7.
The shopping cart (MiniShop2) has now stopped functioning when the checkout values are submitted and POSTed to /assets/components/minishop2/action.php.
In the MODX error log we see
[2019-07-01 12:55:57] (ERROR @ /home/client/public_html/core/xpdo/om/xpdoobject.class.php : 1452) Error 22007 executing statement:
INSERT INTO modx_ms2_order_addresses (user_id, createdon, receiver, phone, country, index, region, city, street, building, room, comment) VALUES (4, ‘2019-07-01 12:55:57’, ‘Tate’, ‘1524649879’, ‘GB’, ‘LA1 1AA’, ‘Lancs’, ‘Lancaster’, ‘Cameron House, White Cross’, ‘Michael’, ‘White Cross’, ‘’)
Array
(
[0] => 22007
[1] => 1292
[2] => Incorrect datetime value: ‘0000-00-00 00:00:00’ for column ‘updatedon’ at row 1
)
Does anyone know how to fix the error?