Hi guys,
I upgraded 156a to 157c with upgrading also Mysql from 5.6 to 5.7.29. Also PHP from 7.2 to 7.418. All seem ok but when trying to post a new product I get the message WARNING: An Error occurred, please refresh the page and try again. If you were entering information, press the BACK button in your browser and ...
The error log shows
[21-Jul-2021 09:27:24 UTC] Request URI: /admin/index.php?cmd=product&cPath=192&action=insert_product, IP address: xxxxxx
#1 trigger_error() called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/functions/database.php:44]
#5 zen_db_perform() called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/admin/includes/modules/update_product.php:71]
#6 require(/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/macadmin1/includes/modules/update_product.php) called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/admin/product.php:33]
#7 require(/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/admin/product.php) called at [/Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/macadmin1/index.php:11]
--> PHP Fatal error: 1364:Field 'products_msrp' doesn't have a default value :: INSERT INTO products (products_quantity, products_type, products_model, products_price, products_date_available, products_weight, products_status, products_virtual, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_discount_type, products_discount_type_from, products_price_sorter, products_image, products_date_added, master_categories_id) VALUES ('0', '1', 'dfsfgdf', '84.0336', null, '0', '1', '0', '1', '1', '1', '1', '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', 'productimages/pwrabyss.gif', now(), '192') ==> (as called by) /Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/functions/database.php on line 44 <== in /Applications/Abyss Web Server/htdocs/zencart-v157c-04072021/includes/classes/db/mysql/query_factory.php on line 170.
I re-imported the database multiple times and setup the zencart from scratch without success. It seems there is an issue with the Default values /Null in Mysql 5.7 and I am not sure how to solve the issue. If you have any recommendations I will appreciate it.