Those changes should be OK-fine! Happy 2021 to all!
Printable View
Those changes should be OK-fine! Happy 2021 to all!
Thank you.
I made those changes, yet I get same error: Warning: An error occured, please refresh the page and try again.
Any other suggestions please?
Thank you.
Sorry for creating confusion, besides the on screen message, I should have specified that the debug reports the same as my previous post #20
It seems your new server is using a much newer MySQL version. And newer MySQL versions have "strict mode" enabled by default. I'm guessing your old server used an older version and/or had strict mode turned off, whether intentionally or as a byproduct of the old version's defaults.
While most of v1.5.7's code has been adapted to accommodate such issues, your 1.5.6 site won't have those benefits. Until you get your code upgraded, you could temporarily turn strict mode off in your MySQL. This is not recommended, but it's a bandage until you do the very important upgrade to make your Zen Cart compatible with the new server you've begun using.
Thank you.
Looks like I have to reschedule some jobs.
While in process to prepare for upgarde I asked hosting, and they removed strict mode, and it worked for one transaction.
Couple days ago there was yet another transaction which failed, meaning no orders in admin, and no emails, but funds in PayPal account.
Thank you
Hi Guys trying to reset all products master master directory ids in 1.5.7c php 7.4 mysql 5.7 (ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION)
I get PHP Fatal error: 1366:Incorrect integer value as shown in the log below.
[17-Oct-2021 13:25:56 UTC] Request URI: /admin/index.php?cmd=store_manager&action=update_all_master_categories_id, IP address: xx.xx.xx.xx
#1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/admin/store_manager.php:175]
#5 require(/admin/store_manager.php) called at [/admin/index.php:11]
--> PHP Fatal error: 1366:Incorrect integer value: '' for column 'master_categories_id' at row 1 :: UPDATE products SET master_categories_id='' WHERE products_id='2691' ==> (as called by) /admin/store_manager.php on line 175 <== in /includes/classes/db/mysql/query_factory.php on line 170.
You'll need to perform some "database surgery", since it appears that the product with id=2691 doesn't have an associated record in the products_to_categories table.
If you inspect that product via phpMyAdmin, what shows as its master_categories_id? Is it a valid categories_id? If so, you can simply add a record to the products_to_categories table that associates products_id 2691 to its master_categories_id.
You may be able to track down some of these anomalies using the Audit tool:
https://www.zen-cart.com/downloads.php?do=file&id=2261