Friday, April 13, 2012

PrestaShop Bug - Ver 1.44 - Backoffice Shopping cart page fatal error Cannot use object of type Image as array

There is an issue with PrestaShop 1.44 back office shopping cart page.

When you access Back office - Customers tab - Shopping carts tag - click any cart entry

The shopping cart detailed page is broken and it does not display correctly,
if you enable error displaying by changing "display_errors" to "on" in file /config/config.inc.php, then you will see following error displayed.


Fatal error: Cannot use object of type Image as array in C:\wamp\www\prestashop\agilemultipleseller.dev\adminDEV\tabs\AdminCarts.php on line 269


See following screen image. o

 



 
How to fix the problem

in order to fix the problem you need to make a small change in file
YourStoreRoot/admin/tabs/AdminOrders.php



Change Line 269

From
'.(isset($image['id_image']) ? cacheImage(_PS_IMG_DIR_.'p/'.$image->getExistingImgPath().'.jpg',

 TO

'.(isset($image->id_image) ? cacheImage(_PS_IMG_DIR_.'p/'.$image->getExistingImgPath().'.jpg',



1 comment:

Anonymous said...

Worked for me. Thanks Alvin.