Products within Order is not displayed

Avatar
  • Answered
Hi,

My website works fine all weekend after website transfer but today I checked that the products are not listed on the order just the total amount and shipping fee. I am using prestashop 1.5.0.17.

The errors are the following:

Warning: Invalid argument supplied for foreach() in /home/kenkom6/public_html/kenkomuri/classes/order/Order.php on line 540

Warning: Invalid argument supplied for foreach() in /home/kenkom6/public_html/kenkomuri/controllers/admin/AdminOrdersController.php on line 1292

I have tried adding (array) but it does not work. I pass from this:
foreach ($products as $row)
to this:
foreach ((array)$products as $row)

I have done a backup of the files from August 9th and still not working. The PHP version is good.
Avatar
Scott
Hello Ferbo7, If you have a copy of the table in a backup, you may be able to import it via the phpMyAdmin tool. This should insert the database and your site should then function as it is supposed to, Kindest Regards, Scott M