• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue PrestaShop 1.7 -> AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Tools'

LorisMod

New Pleskian
PrestaShop 1.7.6.0 has the problem with Server Plesk Onyx ver 17.8.11 CentOS Linux 7.6.1810 and FPM.

Shop Parameters -> Traffic & SEO -> Set up URLs -> Save
Blank Page Error 500

Advanced Parameters -> Performance -> Clear Cache
Blank Page Error 500


The error with Plesk 17.5.3 and 17.8.11 occurs with FPM served by Apache, using FastCGI, prestashop does not generate the error. How to solve and use FPM?

Error Apache
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php:794\nStack trace:\n#0 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(47): DbCore->escape('configuration', false)\n#1 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(52): pSQL('configuration')\n#2 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(155): bqSQL('configuration')\n#3 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(209): ConfigurationCore::loadConfiguration()\n#4 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...')\n#5 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex()\n#6 [internal function]: PrestaShopAutoload->load('Tools')\n#7 /var/www/vhosts/ideepercasa.shop/httpdocs/config/config.inc.php(85): spl_autoload_call('Tools')\n#8 /var/www/vhosts/ideepercasa.shop/httpdocs/admIdeePerC...\n', referer: http://ideepercasa.shop/admIdeePerC...n=nKU1MdK7nzGCr62FQutwe15gL23OFGIu28qXZO8FPLE

Error PrestaShop debug
Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php:794 Stack trace: #0 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(47): DbCore->escape('configuration', false) #1 /var/www/vhosts/ideepercasa.shop/httpdocs/config/alias.php(52): pSQL('configuration') #2 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(155): bqSQL('configuration') #3 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/Configuration.php(209): ConfigurationCore::loadConfiguration() #4 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...') #5 /var/www/vhosts/ideepercasa.shop/httpdocs/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex() #6 [internal function]: PrestaShopAutoload->load('Tools') #7 /var/www/vhosts/ideepercasa.shop/httpdocs/config/config.inc.php(85): spl_autoload_call('Tools') #8 /var/www/vhosts/ideepercasa.shop/httpdocs/admIdeePerCasa/index.php(40): require('/var/ww in /var/www/vhosts/ideepercasa.shop/httpdocs/classes/db/Db.php on line 794

PrestaShop Insues:
Class 'Tools' not found in /public_html/classes/db/Db.php:794 · Issue #12667 · PrestaShop/PrestaShop
 
Looking at the PrestaShop bug report, I'm not sure this is a Plesk issue. In any case, it might be helpful to see your exact PHP configuration, disabled functions list, etc.
 
It's a very strange problem, I did some tests, I have 2 servers with identical versions of Plesk and CentOS, the same updates and the same configurations. On one PrestaShop 1.7.5.2 and 1.7.6.0 does not present the problem. So I can rule out that this is a server configuration problem.
 
The only difference between the two servers is hardware, the one in which I have the problem has SSD disks, actually I know that on 5 Plesk servers I only check on the two with SSD disk, but it can also be a coincidence.
 
I had experience the same problem. I have the same Onyx version but in a Debian distribution.

After read a lot of threads, i find the problem is associated with FPM or FastCGI option of the php configuration in the domain. The error happens with FPM but not with FastCGI. The rest of configurations are the same. So the problem is Plesk related i guess.
 
The strange thing is that if the page in error 500 is reloaded, the cache cleaning is then performed correctly.
 
I found the solution, the drive was 0 byte empty, deleted var/cache/dev manually and it wend back working again. prestashop 1.7.
 
Hi is this issue sorted out ? I have the same error as above ! I never had this issue before but I think something related to plesk or prestashop update !
 
Nope what did solve it is schanging from FPM to CGfast . But I had it before working with FPM , I am not sure if it is some plesk update causing it or it is prestashop but doubt it as it was working with the latest version . The only thing I had to do is create new instance in Amazon and install another new fresh prestashop latest installation and that's me with that error ! Your help will be appreciated . Thanks
 
Back
Top