Jump to content

ContextErrorException


Kerey

Recommended Posts

ContextErrorException in Managerblock.php line 54:

Warning: count(): Parameter must be an array or an object that implements Countable

in Managerblock.php line 54

at ErrorHandler->handleError('2', 'count(): Parameter must be an array or an object that implements Countable', '/home2/prixvert/public_html/modules/labmanagerblocks/models/Managerblock.php', '54', array('id_shop' => '2', 'hook_position' => 'displayHome', 'id_lang' => '2', 'object' => array(), 'newObject' => array())) in Managerblock.php line 54

at ManagerBlock->getStaticblockLists('2', 'displayHome') in labmanagerblocks.php line 313

at Labmanagerblocks->hookdisplayHome(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '3')) in Hook.php line 758

at HookCore::coreCallHook(object(Labmanagerblocks), 'hookdisplayHome', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '3')) in Hook.php line 723

at HookCore::exec('displayHome') in IndexController.php line 39

at IndexControllerCore->initContent() in Controller.php line 201

at ControllerCore->run() in Dispatcher.php line 366

at DispatcherCore->dispatch() in index.php line 28

 

Please help me !

Link to comment
Share on other sites

"Warning: count(): Parameter must be an array or an object that implements Countable"

This happens because you are running a newer php version than is recommended for your Prestashop version. 

However, if you do a bit of internet search you will find that code that produces this warning can easily be fixed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...