Shopify Posted February 2, 2022 Share Posted February 2, 2022 (edited) PS 1.6.1.13 lgcookieslaw v1.4.20 -> 2.0.0 Modul EU Cookie Law (lgcookieslaw). By updating the above module I get this error when BO->Module refreshes to list Modules: Quote [PrestaShop] Fatal error in module file :/var/www/clients/client0/web415/web/classes/module/Module.php: Uncaught exception 'ReflectionException' with message 'Class HookOverride_remove61f8161b4bd17 does not exist' in /var/www/clients/client0/web415/web/classes/module/Module.php:2948 Stack trace: #0 /var/www/clients/client0/web415/web/classes/module/Module.php(2948): ReflectionClass->__construct('HookOverride_re...') #1 /var/www/clients/client0/web415/web/classes/module/Module.php(2749): ModuleCore->removeOverride('Hook') #2 /var/www/clients/client0/web415/web/modules/lgcookieslaw/upgrade/upgrade-1.5.0.php(63): ModuleCore->uninstallOverrides() #3 /var/www/clients/client0/web415/web/classes/module/Module.php(499): upgrade_module_1_5_0(Object(LGCookiesLaw)) #4 /var/www/clients/client0/web415/web/controllers/admin/AdminModulesController.php(1495): ModuleCore->runUpgradeModule() #5 /var/www/clients/client0/web415/web/classes/controller/Controller.php(189): AdminModulesControllerCore->initContent() #6 /var/www/clients/client0/web415/web/classes/Dispatcher.php(367): ControllerCore->run() #7 /var/www/clients/client0/we Can anyone tell me what the error tells me? I tried to delete the module first and reinstall it but it's the same error. I tried to contact the module developer with no gain. So if anyone here knows about this kind of error - maybe it's just a file to delete before installing or a line to change. Any help or finger pointing is appreciated. Thanks for your precious time - it is appreciated! Pia Edited February 7, 2022 by Shopify (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted February 3, 2022 Share Posted February 3, 2022 It seems to try to remove a override (hook.php) - check if the override folder is accessible and if this file is existing Link to comment Share on other sites More sharing options...
Shopify Posted February 4, 2022 Author Share Posted February 4, 2022 Thank you JBW. There is a hook.php in the override folder too, which has same accessible as the other files/folders. Should I try to remove the hook.php in override? Link to comment Share on other sites More sharing options...
Shopify Posted February 7, 2022 Author Share Posted February 7, 2022 Prestashop 1.6.1.13 lgcookieslaw 1.5.1 I downloaded above version to try to copy it manually via FTP. Went back to BO and got the same message: Quote [PrestaShop] Fatal error in module file :/var/www/clients/client0/web415/web/classes/module/Module.php: Uncaught exception 'ReflectionException' with message 'Class HookOverride_remove6200ffb3f2da8 does not exist' in /var/www/clients/client0/web415/web/classes/module/Module.php:2948 Stack trace: #0 /var/www/clients/client0/web415/web/classes/module/Module.php(2948): ReflectionClass->__construct('HookOverride_re...') #1 /var/www/clients/client0/web415/web/classes/module/Module.php(2749): ModuleCore->removeOverride('Hook') #2 /var/www/clients/client0/web415/web/modules/lgcookieslaw/upgrade/upgrade-1.5.0.php(63): ModuleCore->uninstallOverrides() #3 /var/www/clients/client0/web415/web/classes/module/Module.php(499): upgrade_module_1_5_0(Object(LGCookiesLaw)) #4 /var/www/clients/client0/web415/web/controllers/admin/AdminModulesController.php(1495): ModuleCore->runUpgradeModule() #5 /var/www/clients/client0/web415/web/classes/controller/Controller.php(189): AdminModulesControllerCore->initContent() #6 /var/www/clients/client0/web415/web/classes/Dispatcher.php(367): ControllerCore->run() #7 /var/www/clients/client0/we The developer is not helping. Any one can help me out or point in the right direction? Please? - much appreciated! Pia Link to comment Share on other sites More sharing options...
Shopify Posted February 7, 2022 Author Share Posted February 7, 2022 Now I also tried to first Deactivate the module and FTP-delete and copy the 1.5.1 (before v1.4.20) Went back to BO to search the module - It looks fine with the right version. But when I activate the module the error-message comes back. Module.php in web/classes/module/ has 0775 rights as any other of the files there. It hasn't been changed since 2017. with a deeper check of the message the number after 'Class HookOverride_remove######### changes for every refresh. I don't know what that means. Link to comment Share on other sites More sharing options...
Shopify Posted February 7, 2022 Author Share Posted February 7, 2022 I got it now! I Deactivated the module lgcookeslaw v1.4.20. I Uninstalled the module. I via FTP deleted the module completely. I via FTP copied the module v1.5.1 to the module folder In BO-modules I located the module with the right version. I configured the module and saved it. (there were more to configure) It seems activated and installed and NO errors 💪 No I check the shop functionality. 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