Jump to content

FatalThrowableError Call to a member function getModuleState() on boolean


Recommended Posts

En voulant passer d'un thème classic à un thème Alysum, j'obtiens cette page d'erreur affichée quand je vais voir ma boutique

(1/1) FatalThrowableError

Call to a member function getModuleState() on boolean

in pk_isotope.php line 544

at pk_isotope->hookdisplayHome(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2, 'hook' => 'displayHome'))
in Hook.php line 966

at HookCore::coreCallHook(object(pk_isotope), 'hookdisplayHome', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))
in Hook.php line 351

at HookCore::callHookOn(object(pk_isotope), 'displayHome', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))
in Hook.php line 903

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

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

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

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

 

J'ai bien été dans le fichier "pk_isotope.php" mais je ne vois pas quoi changer à cette fameuse ligne 544 qui est comme suit :

$status = $this->check_state->getModuleState(array('hook' => $params['hook'], 'name' => $this->name, 'home' => true));

 

Est-ce que vous pouvez m'aiguiller sur la manipulation à faire ?

Link to comment
Share on other sites

Non, on ne peut pas car si

array('hook' => $params['hook'], 'name' => $this->name, 'home' => true)

renvoie un boléen (true ou false) c'est que les $params ou $this renvoient n'importe quoi ou n'existent pas.

Comme le dit @mediacom87 le souci vient du thème/module pk_isotope et non du fonctionnement Prestashop.

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...