Jump to content

Symfony\Component\ErrorHandler\Error\ UndefinedMethodError in modules/hicookielaw/hicookielaw.php (line 95)


Haris

Recommended Posts

Symfony\Component\ErrorHandler\Error\
UndefinedMethodError

in modules/hicookielaw/hicookielaw.php (line 95)
$this->name = 'hicookielaw';        $this->tab = 'front_office_features';        $this->version = '1.4.5';        $this->author = 'hipresta'; $this->need_instance = 0;        $this->secure_key = Tools::encrypt($this->name);        $this->bootstrap = true;        $this->module_key = 'ed785e289986ec635b77555b5ac57856';        parent::__construct();        $this->globalVars();        $this->displayName = $this->l('Cookie Law GDPR - France, Spain, Italy ...');

 

Getting this error when i try to upgrade prestashop 8.0.1 to 9 using update assistant. How to fix this ?

Both backend and frontend not working.

 

Following error showing in front end


Fatal error: Uncaught Error: Call to undefined method Tools::encrypt() in /home/myshop.com/html/modules/hicookielaw/hicookielaw.php:95 Stack trace: #0 [internal function]: HiCookieLaw->__construct() #1 /home/myshop.com/html/src/Core/Foundation/IoC/Container.php(124): ReflectionClass->newInstance() #2 /home/myshop.com/html/src/Core/Foundation/IoC/Container.php(154): PrestaShop\PrestaShop\Core\Foundation\IoC\Container->makeInstanceFromClassName() #3 /home/myshop.com/html/src/Core/Foundation/IoC/Container.php(167): PrestaShop\PrestaShop\Core\Foundation\IoC\Container->doMake() #4 /home/myshop.com/html/src/Adapter/ServiceLocator.php(70): PrestaShop\PrestaShop\Core\Foundation\IoC\Container->make() #5 /home/myshop.com/html/classes/module/Module.php(1364): PrestaShop\PrestaShop\Adapter\ServiceLocator::get() #6 /home/myshop.com/html/classes/module/Module.php(1343): ModuleCore::coreLoadModule() #7 /home/myshop.com/html/override/classes/module/Module.php(24): ModuleCore::getInstanceByName() #8 /home/myshop.com/html/classes/Hook.php(1066): Module::getExceptionsStatic() #9 /home/myshop.com/html/classes/controller/FrontController.php(957): HookCore::exec() #10 /home/myshop.com/html/classes/controller/Controller.php(315): FrontControllerCore->setMedia() #11 /home/myshop.com/html/classes/Dispatcher.php(487): ControllerCore->run() #12 /home/myshop.com/html/index.php(78): DispatcherCore->dispatch() #13 {main} thrown in /home/myshop.com/html/modules/hicookielaw/hicookielaw.php on line 95

 

Link to comment
Share on other sites

renamed to _hicookielaw. but showing blank page. so changed to hicookielaw. now showing following error in admin login page

Quote

     $this->name = 'hicookielaw';

        $this->tab = 'front_office_features';

        $this->version = '1.4.5';

        $this->author = 'hipresta';

        $this->need_instance = 0;

        $this->secure_key = Tools::encrypt($this->name);

        $this->bootstrap = true;

        $this->module_key = 'ed785e289986ec635b77555b5ac57856';

        parent::__construct();

        $this->globalVars();

        $this->displayName = $this->l('Cookie Law GDPR - France, Spain, Italy ...');

 

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