Products within Order is not displayed
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.
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.