Jump to content
prestol

Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/html/classes/db/Db.php

Recommended Posts

Hello 

turning on debug mode produces this error

prestashop: 17.6

php: 7.2.22


Fatal error: Uncaught Error: Class 'Tools' not found in /var/www/html/classes/db/Db.php:794 Stack trace: #0 /var/www/html/config/alias.php(47): DbCore->escape('configuration', false) #1 /var/www/html/config/alias.php(52): pSQL('configuration') #2 /var/www/html/classes/Configuration.php(155): bqSQL('configuration') #3 /var/www/html/classes/Configuration.php(209): ConfigurationCore::loadConfiguration() #4 /var/www/html/classes/PrestaShopAutoload.php(171): ConfigurationCore::get('PS_DISABLE_OVER...') #5 /var/www/html/classes/PrestaShopAutoload.php(130): PrestaShopAutoload->generateIndex() #6 [internal function]: PrestaShopAutoload->load('Tools') #7 /var/www/html/config/config.inc.php(85): spl_autoload_call('Tools') #8 /var/www/html/adminfolder/index.php(40): require('/var/www/html/c...') #9 {main} thrown in /var/www/html/classes/db/Db.phpon line 794

selinux is disabled

 

how to fix it

 

Edited by prestol (see edit history)

Share this post


Link to post
Share on other sites

check that a file named Tools.php is in the classes/ folder. If not, grab a clean zip file and extract, then upload it to the server.

Share this post


Link to post
Share on other sites

Hello
Yes, its there

i downloaded the latest and replaced the old once, same error

 

[root@centosVM classes]# ls -la /var/www/html/classes/ |grep Tool
-rw-r--r--.  1 apache apache 146546 Jul 30 20:36 Tools.php


[root@centosVM classes]# cp Tools.php /var/www/html/classes/
cp: overwrite ‘/var/www/html/classes/Tools.php’? y
[root@centosVM classes]# 
[root@centosVM classes]# 
[root@centosVM classes]# systemctl restart httpd

[root@centosVM classes]# 

 

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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More