prestol Posted September 7, 2019 Share Posted September 7, 2019 (edited) 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 September 7, 2019 by prestol (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 7, 2019 Share Posted September 7, 2019 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. Link to comment Share on other sites More sharing options...
prestol Posted September 7, 2019 Author Share Posted September 7, 2019 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 Link to comment Share on other sites More sharing options...
prestol Posted September 7, 2019 Author Share Posted September 7, 2019 Is this an error with php 7.2.22? Link to comment Share on other sites More sharing options...
prestol Posted September 7, 2019 Author Share Posted September 7, 2019 updated to 1.7.6.1 and it works again.. 1 Link to comment Share on other sites More sharing options...
Mian Waqas Posted July 10, 2020 Share Posted July 10, 2020 For any one who facing this issue, just delete or rename the DEV & PROD folders in /var/cache/ error will gone, its a cache issue more likely with multi stores Thanks 3 Link to comment Share on other sites More sharing options...
agenceweb74 Posted September 4, 2020 Share Posted September 4, 2020 On 7/10/2020 at 2:33 PM, SMTmardan said: For any one who facing this issue, just delete or rename the DEV & PROD folders in /var/cache/ error will gone, its a cache issue more likely with multi stores Thanks Same error and same fix with 1.7.6.7 Link to comment Share on other sites More sharing options...
Nickz Posted May 10, 2021 Share Posted May 10, 2021 On 7/10/2020 at 8:33 AM, SMTmardan said: For any one who facing this issue, just delete or rename the DEV & PROD folders in /var/cache/ error will gone, its a cache issue more likely with multi stores no such folders anywhere Still the error comes up Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2021 Share Posted May 10, 2021 9 minutes ago, Nickz said: no such folders anywhere Still the error comes up which prestashop version do you have? the "Var" folder is always there at root in public_html Link to comment Share on other sites More sharing options...
Nickz Posted May 10, 2021 Share Posted May 10, 2021 8 minutes ago, SMTmardan said: the "Var" folder is always there at root in public_html the var folder is not in public_html, not in debian or ubuntu Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2021 Share Posted May 10, 2021 8 minutes ago, Nickz said: the var folder is not in public_html, not in debian or ubuntu Where is the Admin folder? "Which prestashop version do you have" Link to comment Share on other sites More sharing options...
Nickz Posted May 10, 2021 Share Posted May 10, 2021 (edited) in the install folder called /tb path is home/admin/web/xxxx.com/public_html/tb Latest version. var/cache is under the root folder of the server. Same level etc is on. Edited May 10, 2021 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 10, 2021 Share Posted May 10, 2021 7 minutes ago, Nickz said: in the install folder called /tb path is home/admin/web/xxxx.com/public_html/tb Latest version. var/cache is under the root folder of the server. Same level etc is on. So delete this cache folder - Also the Var folder will be in home/admin/web/xxxx.com/public_html/Var if its not there that will mean that you have permission issues, that is why the VAR folder is not creating automatically (You are just near - Think forward how to do it) Link to comment Share on other sites More sharing options...
Nickz Posted May 10, 2021 Share Posted May 10, 2021 13 minutes ago, SMTmardan said: (You are just near - Think forward how to do it) I slowly come to think that you lack insight about linux servers. Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 11, 2021 Share Posted May 11, 2021 20 hours ago, Nickz said: I slowly come to think that you lack insight about linux servers. And what is inside TB folder? please note that the files does not differentiated in linux or any other servers, they remain the same in a folder. Link to comment Share on other sites More sharing options...
Nickz Posted May 11, 2021 Share Posted May 11, 2021 2 hours ago, SMTmardan said: And what is inside TB folder? please note that the files does not differentiated in linux or any other servers, they remain the same in a folder. The solution was to grant permission to www-data in cache, themes, mails, install and config. As I said there are no var folders inside public_html Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 13, 2021 Share Posted May 13, 2021 On 5/11/2021 at 3:23 AM, SMTmardan said: So delete this cache folder - Also the Var folder will be in home/admin/web/xxxx.com/public_html/Var if its not there that will mean that you have permission issues, that is why the VAR folder is not creating automatically (You are just near - Think forward how to do it) Please look at my first message , i told u its permission issue. anyways its good u had fixed it Link to comment Share on other sites More sharing options...
Nickz Posted May 13, 2021 Share Posted May 13, 2021 2 hours ago, SMTmardan said: Please look at my first message You should look onto my last message, don't be a wise guy. Link to comment Share on other sites More sharing options...
Mian Waqas Posted May 13, 2021 Share Posted May 13, 2021 5 minutes ago, Nickz said: You should look onto my last message, don't be a wise guy. "The learned is happy, nature to explore; The fool is happy, that he knows no more" 1 Link to comment Share on other sites More sharing options...
jagh3d Posted November 12, 2021 Share Posted November 12, 2021 On 7/10/2020 at 2:33 PM, SMTmardan said: For any one who facing this issue, just delete or rename the DEV & PROD folders in /var/cache/ error will gone, its a cache issue more likely with multi stores Thanks It worked for me, thank you so much. Link to comment Share on other sites More sharing options...
Mian Waqas Posted November 12, 2021 Share Posted November 12, 2021 43 minutes ago, jagh3d said: It worked for me, thank you so much. Great , You are welcome Link to comment Share on other sites More sharing options...
JBW Posted November 12, 2021 Share Posted November 12, 2021 On 5/10/2021 at 11:08 PM, Nickz said: no such folders anywhere They will be in your shops folder - public_html/*your_shop*/var/cache is generated/regenerated automatically, Prestashop won't work without Link to comment Share on other sites More sharing options...
eresturamoncin Posted January 6, 2022 Share Posted January 6, 2022 On 7/10/2020 at 2:33 PM, SMTmardan said: For any one who facing this issue, just delete or rename the DEV & PROD folders in /var/cache/ error will gone, its a cache issue more likely with multi stores Thanks Sorry to refloat this thread, but I have a similar error and cannot fix it in any way. I have already deleted the contents of the var / cache folders, but there is no way. AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Symfony\\Component\\Debug\\Exception\\FatalThrowableError' not found in /furanet/sites/mt.com/web/htdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:559\nStack trace:\n#0 [internal function]: Symfony\\Component\\Debug\\ErrorHandler->handleException(Object(Error))\n#1 {main}\n thrown in /furanet/sites/mt.com/web/htdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php on line 559 PHP message: PHP Fatal error: Uncaught Error: Class 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' not found in /furanet/sites/mt.com/web/htdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:685\nStack trace:\n#0 [internal function]: Symfony\\Component\\Debug\\ErrorHandler::handleFatalError()\n#1 {main}\n thrown in /furanet/sites/mt.com/web/htdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php on line 685', Prestashop version is 1.7.8.2 and php 7.3 Thank you so much Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2022 Share Posted January 6, 2022 31 minutes ago, eresturamoncin said: Sorry to refloat this thread, but I have a similar error That is new or did you do something? And if yes what did you do? Link to comment Share on other sites More sharing options...
eresturamoncin Posted January 6, 2022 Share Posted January 6, 2022 11 minutes ago, Nickz said: That is new or did you do something? And if yes what did you do? I´ve already deleted the var/cache content, but it doesn´t work. I cannot acces to the backoffice, we obtain a 500 error. Is something intermittent. sometimes it´s work correctly. Link to comment Share on other sites More sharing options...
Nickz Posted January 6, 2022 Share Posted January 6, 2022 (edited) 30 minutes ago, eresturamoncin said: I cannot acces to the backoffice, we obtain a 500 error. Is something intermittent. sometimes it´s work correctly. What have you done to cause that. It won't happen out of nothing. Except if your server outphased a php version the shop need to work smoothly. Edited January 6, 2022 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
eresturamoncin Posted January 6, 2022 Share Posted January 6, 2022 I don't know what caused it. It is difficult to know from when it fails, as I already said that it is intermittent. The front works correctly. But it's quite annoying having to reload the backoffice page while serving customers. I have also tried to deactivate the few modules that I have not native to prestashop, but it does not work. Thank you for your time. Link to comment Share on other sites More sharing options...
Mian Waqas Posted January 12, 2022 Share Posted January 12, 2022 On 1/7/2022 at 1:38 AM, eresturamoncin said: I don't know what caused it. It is difficult to know from when it fails, as I already said that it is intermittent. The front works correctly. But it's quite annoying having to reload the backoffice page while serving customers. I have also tried to deactivate the few modules that I have not native to prestashop, but it does not work. Thank you for your time. Please turn on Debug mode and post the error. Seems PHP 7.3 is not compatible with one of your module, also try to downgrade the PHP version and check. Best regards Link to comment Share on other sites More sharing options...
eresturamoncin Posted January 15, 2022 Share Posted January 15, 2022 On 1/12/2022 at 9:51 AM, SMTmardan said: Please turn on Debug mode and post the error. Seems PHP 7.3 is not compatible with one of your module, also try to downgrade the PHP version and check. Best regards Thank you for your time. I just upgrade PHP version to 7.4 and the error keeps happening. The debug does not provide any type of additional information because the 500 error is before the debug starts to act. I'm desperate now. I do not know what else to do. I have disabled the modules that are not native to prestashop and the same thing keeps happening. Link to comment Share on other sites More sharing options...
Nickz Posted January 15, 2022 Share Posted January 15, 2022 2 hours ago, eresturamoncin said: I just upgrade PHP version to 7.4 I think he wrote downgrade. Link to comment Share on other sites More sharing options...
Mian Waqas Posted January 15, 2022 Share Posted January 15, 2022 3 hours ago, eresturamoncin said: Thank you for your time. I just upgrade PHP version to 7.4 and the error keeps happening. The debug does not provide any type of additional information because the 500 error is before the debug starts to act. I'm desperate now. I do not know what else to do. I have disabled the modules that are not native to prestashop and the same thing keeps happening. Please Downgrade it not upgrade... to turn on Debbug mode manually please read this guide https://zemez.io/support/prestashop/how-to/prestashop-1-7-enable-debug-mode-display-errors/#:~:text=In your PrestaShop admin panel,Save the changes. Regards 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