hobart Posted September 5, 2022 Posted September 5, 2022 Hello For two months, mshobart.eu (on a 1.7.5.2 version) turns into not working very often, at least one time per week. Last time was today (please find attached a print screen). I tried a lot to solve this, inclusive to restore a backup from the beginning of June, I've updated all modules, but the same. Website become not working The last error from log is as follows: [05-Sep-2022 22:09:15 Europe/Bucharest] PHP Fatal error: Uncaught Error: Class 'Hook' not found in /home2/mshobart/public_html/classes/Dispatcher.php:589 Stack trace: #0 /home2/mshobart/public_html/classes/Dispatcher.php(249): DispatcherCore->loadRoutes() #1 /home2/mshobart/public_html/classes/Dispatcher.php(207): DispatcherCore->__construct(Object(Symfony\Component\HttpFoundation\Request)) #2 /home2/mshobart/public_html/index.php(28): DispatcherCore::getInstance() #3 {main} thrown in /home2/mshobart/public_html/classes/Dispatcher.php on line 589 Please be so kind and do instruct me what to do. Thank you Kind regards Petre Oancea Hobart E-Commerce Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 Do you have a Hook.php in _PS_ROOT_/classes? Share this post Link to post Share on other sites More sharing options...
hobart Posted September 6, 2022 Posted September 6, 2022 (edited) Hello Please do instruct me how to check this Thank you 🙂 Edited September 6, 2022 by hobart (see edit history) Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 Look into classes not into modules. Share this post Link to post Share on other sites More sharing options...
hobart Posted September 6, 2022 Posted September 6, 2022 Hello I have done a search and the result is attached Thank you Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 5 hours ago, Rhobur said: Look into classes not into modules. By classes I meant the /classes directory, obviously... Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 If you don't have the Hook.php class in /classes then download the PrestaShop archive for your version and copy the /classes/Hook.php from there into your /classes directory. Share this post Link to post Share on other sites More sharing options...
hobart Posted September 6, 2022 Posted September 6, 2022 1 hour ago, Rhobur said: If you don't have the Hook.php class in /classes then download the PrestaShop archive for your version and copy the /classes/Hook.php from there into your /classes directory. Hello Sorry ! Hook.php does exist is classes (please find attached) In this case, please do instruct me what to do Thank you Best regards Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 Try to delete the /var/cache directory from within this public_html. Share this post Link to post Share on other sites More sharing options...
hobart Posted September 6, 2022 Posted September 6, 2022 Hello Do you mean the directory shown in my attachment ? Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 6, 2022 Posted September 6, 2022 yes Share this post Link to post Share on other sites More sharing options...
hobart Posted September 6, 2022 Posted September 6, 2022 Deletion done Thank you so much ! Just let's see if it will work in time. Sorry but I come with another issue. Today I've tried many times to open a new thread for another issue but the message was I am blocked (please see attached the print screen) Do you know what happened with my account ? Share this post Link to post Share on other sites More sharing options...
Rhobur Posted September 7, 2022 Posted September 7, 2022 I am afraid I have no idea. You will have to contact the PrestaShop support for this one. Share this post Link to post Share on other sites More sharing options...
hobart Posted September 16, 2022 Posted September 16, 2022 Hello The issue has appeared again today. The website became not functional. (please find attached) Please ! Have you idea what is happening ? Thank Share this post Link to post Share on other sites More sharing options...
hobart Posted September 16, 2022 Posted September 16, 2022 The error is: thrown in /home2/mshobart/public_html/classes/Dispatcher.php on line 589 [16-Sep-2022 14:52:22 Europe/Bucharest] PHP Fatal error: Uncaught Error: Class 'Hook' not found in /home2/mshobart/public_html/classes/Dispatcher.php:589 Stack trace: #0 /home2/mshobart/public_html/classes/Dispatcher.php(249): DispatcherCore->loadRoutes() #1 /home2/mshobart/public_html/classes/Dispatcher.php(207): DispatcherCore->__construct(Object(Symfony\Component\HttpFoundation\Request)) #2 /home2/mshobart/public_html/index.php(28): DispatcherCore::getInstance() #3 {main} thrown in /home2/mshobart/public_html/classes/Dispatcher.php on line 589 Share this post Link to post Share on other sites More sharing options...
hobart Posted September 19, 2022 Posted September 19, 2022 Hello The site become not working again today Please ! What should I do ? Thank you Hobart Share this post Link to post Share on other sites More sharing options...
ComGrafPL Posted September 19, 2022 Posted September 19, 2022 Enable debug mode and check the issues. 1 Share this post Link to post Share on other sites More sharing options...
hobart Posted September 19, 2022 Posted September 19, 2022 5 hours ago, ComGrafPL said: Enable debug mode and check the issues. Hello When I tried to set debug on I met the attached error Please instruct me how to pass it Thank you Hobart Share this post Link to post Share on other sites More sharing options...
ComGrafPL Posted September 20, 2022 Posted September 20, 2022 This will help you out. 1 Share this post Link to post Share on other sites More sharing options...
hobart Posted September 20, 2022 Posted September 20, 2022 1 hour ago, ComGrafPL said: This will help you out. Hello It was because the hosting limits. Changing limits from .htaccess didn't work Thank you Share this post Link to post Share on other sites More sharing options...
hobart Posted September 20, 2022 Posted September 20, 2022 14 hours ago, ComGrafPL said: Enable debug mode and check the issues. Hello I've enabled the debug mode Let's see... Share this post Link to post 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