Jump to content

Extremely Slow Customer Registration (sign up) on PrestaShop 8.2 (Timeout Error 500)


Gomesam

Recommended Posts

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:

  1. Disabled all third-party modules, including custom ones, but the issue persists.
  2. Switched to the Classic theme, but no improvement.
  3. Checked the database, and the data is saved immediately without any slow queries.
  4. Reviewed PHP and Apache logs, but no specific errors are shown beyond the 500 timeout.



 

Questions:

  1. What could be causing such delays in backend processing despite successful database writes?
  2. Are there ways to debug PrestaShop hooks, modules, or internal processes to pinpoint the bottleneck?
  3. Any suggestions on what else I could investigate?
     

Thanks for any insights! Let me know if more details are needed.

image.thumb.png.22c96520f30d1358ffccb59157bc4e34.png

Edited by Gomesam (see edit history)
Link to comment
Share on other sites

I accessed the registration page and activated the Debug Profiler.

  1. I completed the registration, but the page got stuck in an endless loading loop.
  2. I scrolled down the page and took these two screenshots from the Debug Profiler.
  3. After some time, as usual, the page returned a 500 error.
  4. 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!



image.thumb.png.f6f0521a8719bb0374c4126781b6948a.pngimage.thumb.png.557e9412c7edb19e5de248b7ae8652b1.png
image.png.e369f723e962f090f39b2a4d3f8805e0.png

 


image.thumb.png.bbcc60f70a0a9e2c9f28e293d5f66b59.png

Edited by Gomesam (see edit history)
Link to comment
Share on other sites

 

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.



image.png.9309560f1de616756df24fd82bad858c.png

Link to comment
Share on other sites

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 by Gomesam (see edit history)
Link to comment
Share on other sites

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.php

This is not a proper solution and should only be considered temporary, as the changes will be overwritten after a PrestaShop update.

Screenshot_10.jpg

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...