Jump to content

AH01071: Errore ricevuto 'Messaggio PHP: PHP Errore fatale - Solved


Recommended Posts

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

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

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

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

  • newgeneration changed the title to AH01071: Errore ricevuto 'Messaggio PHP: PHP Errore fatale - Solved

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