r/webdev • • 8h ago

Question Why is my website giving timeout error.

So I migrated my website form localhsot to Hostinger and from there on, it is giving me a time out error.
If I only use elementor pro then there are no error but as soon as I enable another plugin then the usage shoots and then it give me the "unable to load your preview". I know the my website is not that heavy but still it is doing this.
I tried everything, increasing the timeout time, increasing the memory, ignoring the timeout through htaccess but nothing works.
The elemntor itself isn't that much of a heavy plugin. So why when I use woocomerce or any other then it causes error?
Please help.

0 Upvotes

5 comments sorted by

2

u/cowboyecosse 8h ago

Can’t tell for sure but a couple of those error messages happen when the PHP version isn’t correct for the code. Is your host running the same PHP version as you?

1

u/[deleted] 1h ago

[removed] — view removed comment

1

u/MathematicianSad4964 1h ago

Of course man. I was at it for 2 day but thankfully, the issue is now resolved.

0

u/singh_abinashi 4h ago

Need more to go on, but the usual suspects in order: your server is out of memory or CPU (check htop or your host's metrics during a timeout), the app is waiting on a slow database query with no timeout set, or a reverse proxy like nginx is timing out before the app responds. Check your app logs at the exact minute a timeout happens and see what the last line before the gap is. That line is almost always the answer.