Gomesam Posted February 6 Share Posted February 6 (edited) Hi everyone, I’m encountering a major issue with PrestaShop 8.2 where customer registration is extremely slow. The data is saved instantly in the database, but the page gets stuck in a loading loop and eventually returns a 500 timeout error after about 2 minutes. The issue happens consistently during actions that require backend communication, such as customer registration or order finalization. Environment Details: PrestaShop Version: 8.2.0 PHP Version: 8.1.29 (with Zend OPcache) MariaDB Version: 10.5.25 Memory Limit: 512M max_execution_time: 300 Web Server: Apache 2.4.62 (running on Amazon Linux, AWS EC2) What I’ve Tried: Disabled all third-party modules, including custom ones, but the issue persists. Switched to the Classic theme, but no improvement. Checked the database, and the data is saved immediately without any slow queries. Reviewed PHP and Apache logs, but no specific errors are shown beyond the 500 timeout. Questions: What could be causing such delays in backend processing despite successful database writes? Are there ways to debug PrestaShop hooks, modules, or internal processes to pinpoint the bottleneck? Any suggestions on what else I could investigate? Thanks for any insights! Let me know if more details are needed. Edited February 6 by Gomesam (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 6 Share Posted February 6 Hi, is it an upgraded PS? If so how many customers do you have? 1 Link to comment Share on other sites More sharing options...
Gomesam Posted February 7 Author Share Posted February 7 On 2/6/2025 at 2:12 PM, Prestashop Addict said: Hi, is it an upgraded PS? If so how many customers do you have? Expand No, it's a fresh installation of PrestaShop 8.2. I have very few customers, less than 15 (only testers), as the site has not been launched yet. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 7 Share Posted February 7 Hum, strange, can you activate profiling to see who is causing timeout 1 Link to comment Share on other sites More sharing options...
Gomesam Posted February 7 Author Share Posted February 7 (edited) I accessed the registration page and activated the Debug Profiler. I completed the registration, but the page got stuck in an endless loading loop. I scrolled down the page and took these two screenshots from the Debug Profiler. After some time, as usual, the page returned a 500 error. After the 500 error, I clicked the back button, and it took me to this page. Is this the information you were looking for, or should I check something else in the Debug Profiler? Thanks for your help! Edited February 7 by Gomesam (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 7 Share Posted February 7 And with debug activate don't you a have a php exception displayed? Turn debug on if still error 500, look at serveur error log file from apache 1 Link to comment Share on other sites More sharing options...
Gomesam Posted February 7 Author Share Posted February 7 I activated debug mode and attempted to register a customer, and I received this error. Regarding the logs located in var/log/apache (or in my case, var/log/httpd), I currently don't have access to that resource. I will need to speak with my supervisor to request the necessary permissions. Link to comment Share on other sites More sharing options...
Ewonta Posted February 7 Share Posted February 7 Try disabling email sending 1 Link to comment Share on other sites More sharing options...
Gomesam Posted February 7 Author Share Posted February 7 (edited) Thank you very much! Now, both the registration and placing orders have an acceptable response time. Thanks again! I was really starting to get a headache over this issue. Of course, it had to be something "simple"! I also want to thank Prestashop Addict for taking the time to help me. Thanks to both of you! Edited February 7 by Gomesam (see edit history) Link to comment Share on other sites More sharing options...
Ewonta Posted February 7 Share Posted February 7 The hosting server probably doesn't have the SMTP service configured or it's blocked, which is required for the /usr/sbin/sendmail -bs mode to work. Switching to /usr/sbin/sendmail -t solved the issue since this mode doesn't need an SMTP connection and processes mail locally. You have completely disabled mail sending, and to resolve the issue, you need to ask the hosting provider to fix it. As a temporary, although not ideal but functional solution, you can change the configuration flag in PrestaShop to /usr/sbin/sendmail -t by editing the configuration file at the appropriate path./vendor/swiftmailer/swiftmailer/lib/classes/Swift/SendmailTransport.phpThis is not a proper solution and should only be considered temporary, as the changes will be overwritten after a PrestaShop update. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 7 Share Posted February 7 You're welcome 😉 Don't forget to change your title post by adding [SOLVED] and add a Thanks or Like to the good answer, this will help community. 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