newgeneration Posted March 29 Share Posted March 29 Hi everyone, I have the following problem with the installation of prestashop 8.1.4 and PHP 8.1.27, for several days in the error log I have been seeing the following error: [Fri Mar 29 09:23:58.909308 2024] [proxy_fcgi:error] [pid 2522986] [client 111.225.148.179:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function getPriceWithoutReduct() on null in /var/www/vhosts/pneumaticidiretti.com/httpdocs /override/controllers/front/ProductController.php:79\nStack trace:\n#0 /var/www/vhosts/pneumaticidiretti.com/httpdocs/override/controllers/front/ProductController.php(45): ProductController->getPriceProduct ()\n#1 /var/www/vhosts/pneumaticidiretti.com/httpdocs/classes/controller/FrontController.php(543): ProductController->getTemplateVarPage()\n#2 /var/www/vhosts/pneumaticidiretti.com /httpdocs/classes/controller/FrontController.php(607): FrontControllerCore->assignGeneralPurposeVariables()\n#3 /var/www/vhosts/pneumaticidiretti.com/httpdocs/controllers/front/ProductController.php(465): FrontControllerCore- >initContent()\n#4 /var/www/vhosts/pneumaticidiretti.com/httpdocs/classes/controller/Controller.php(319): ProductControllerCore->initContent()\n#5 /var/www/vhosts/pneumaticidiretti .com/httpdocs/classes/Dispatcher.php(510): ControllerCore->run()\n#6 /var/www/vhost...' how can I solve it? A thousand thanks Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 29 Share Posted March 29 You have an override of class ProductController.php that cause this issue. Find the module that causes this and uninstall it. Link to comment Share on other sites More sharing options...
newgeneration Posted March 29 Author Share Posted March 29 6 minuti fa, Prestashop Addict ha detto: Hai un override della classe ProductController.php che causa questo problema. Trova il modulo che lo causa e disinstallalo. Thanks for the quick response, is there a quick way to find the module generating the error? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 29 Share Posted March 29 In modules directory, for each not ps native module see if there is a file modulename/override/controllers/front/ProductController.php 1 Link to comment Share on other sites More sharing options...
newgeneration Posted March 29 Author Share Posted March 29 14 minutes ago, Prestashop Addict said: In modules directory, for each not ps native module see if there is a file modulename/override/controllers/front/ProductController.php thank you very much, the only module present is the module I use for SEO. "https://prestahero.com/it/77-modulo-seo-prestashop.html" Now how can I fix it? I can't uninstall the module. Thank you Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 29 Share Posted March 29 (edited) If you cannot uninstall it, rename the folder name of the module modules/modulename/ as modules/bug-modulename/. Delete file override/controllers/front/ProductController.php and delete folder var/cache/prod or var/cache/dev if you are in debug mode. Edited March 29 by Prestashop Addict (see edit history) 1 Link to comment Share on other sites More sharing options...
newgeneration Posted March 29 Author Share Posted March 29 20 minutes ago, Prestashop Addict said: If you cannot uninstall it, rename the folder name of the module modules/modulename/ as modules/bug-modulename/. Delete file override/controllers/front/ProductController.php and delete folder var/cache/prod or var/cache/dev if you are in debug mode. Thank you very much, I am not receiving any errors at the moment.. 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