Jump to content

blocklayered - Invalid argument supplied for foreach()


Recommended Posts

Upgraded my blocklayered to the latest version from github (https://github.com/PrestaShop/PrestaShop-1.4/tree/master/modules/blocklayered)

 

I'm getting this in my error log:

www.peciatky.sk [Sat Jan 25 21:42:51 2014] [error] [client 194.1.130.37] PHP Notice:  Undefined index: shop_list in /data/p/e/peciatky.sk/web/eshop/modules/blocklayered/blocklayered.php on line 4193, referer: http://www.peciatky.sk/eshop/admin336/index.php?tab=AdminModules&configure=blocklayered&token=2bb0e6d366fbfa8f0c6816489a5953ac&tab_module=front_office_features&module_name=blocklayered
www.peciatky.sk [Sat Jan 25 21:42:51 2014] [error] [client 194.1.130.37] PHP Warning:  Invalid argument supplied for foreach() in /data/p/e/peciatky.sk/web/eshop/modules/blocklayered/blocklayered.php on line 4193, referer: http://www.peciatky.sk/eshop/admin336/index.php?tab=AdminModules&configure=blocklayered&token=2bb0e6d366fbfa8f0c6816489a5953ac&tab_module=front_office_features&module_name=blocklayered

The specific line of code in blocklayered.php contains:

foreach ($data['shop_list'] as $id_shop)

The new module is using something that my 1.4.4 PrestaShop does not have - what exactly do I need to modify for the module to work?

 

Cheers,

Marek

Link to comment
Share on other sites

×
×
  • Create New...