Haris Posted September 24 Share Posted September 24 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 More sharing options...
ComGrafPL Posted September 24 Share Posted September 24 If its custom module, you should disable it before upgrade or even remove it if it have any overrides. Link to comment Share on other sites More sharing options...
Haris Posted September 24 Author Share Posted September 24 how to remove after upgrade? Link to comment Share on other sites More sharing options...
El Patron Posted September 24 Share Posted September 24 in modules folder rename hicookielaw to _hicookielaw Link to comment Share on other sites More sharing options...
Haris Posted September 25 Author Share Posted September 25 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 More sharing options...
Knowband Plugins Posted September 25 Share Posted September 25 Tools::encrypt() function is deprecated in the PS9. If you are stuck, then edit the file i.e. home/myshop.com/html/modules/hicookielaw/hicookielaw.php:95 and remove the function Tools::encrypt() call from the code. You will be able to access the backend, then uninstall the module. Link to comment Share on other sites More sharing options...
Haris Posted September 25 Author Share Posted September 25 I disabled all modules using the below sql. But backend and frontend not working. showing blank page. Debug is already enabled UPDATE ps_module SET active = 0; Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now