Magento Asked by Pkrishna on October 1, 2021
I’m creating Order export cron module for Magento 2.3. I’m getting below error
Cron-job "monthly_report" threw exception InvalidArgumentException
In Json.php line 39
Unable to unserialize value. Error: Syntax error
While debugging, I found below line produces error. I’m retrieving order details using OrderCollection Factory.
$order->getAllVisibleItems();
I tried below suggestions from stackexchange:
The Error was due to incorrect M2 db. I'm not sure why the DB is not imported properly, though I have used CLI command during each installation.
There were couple of answers in other tickets were issue was due to incorrect M1 db. In my case M2 DB was corrupted. Hope it helps someone.
Answered by Pkrishna on October 1, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP