Error guide / 504 Gateway Timeout
504 Gateway Timeout: The Server Waited Too Long
504 Gateway Timeout appears when one server waited for a response from another and did not get it in the allotted time. Unlike 502, the response is not broken, it simply arrived too late. It usually signals that something on the site is running far too slowly.
Check your site
What causes it
The usual cause is a slow backend: heavy database queries, long-running scripts, an overloaded server, or an external service that answers with a delay.
How to fix it
- Refresh after a minute; a one-off timeout can come from a temporary load spike.
- Find the slow spots: heavy database queries, large imports, or loops in the code.
- Disable heavy plugins one by one to see which one drags out the response.
- Turn on caching (pages and database) to cut the load on the server.
- Check external calls such as APIs or payment gateways; if they hang, response time grows.
- If needed, raise max_execution_time, but fix the real cause of the slowness first.
Related errors
Found problems?
Slow hosting, SSL trouble or frequent downtime? Move to TomisHost: fast hosting with free SSL, daily backups and free migration help.
TomisHost hosting