Home / Questions / What does 504 gateway timeout mean in WordPress?

What does 504 gateway timeout mean in WordPress?

A 504 gateway timeout means the server waited too long for a reply. Slow plugins, a heavy database query or a timeout set by the host or CDN cause it.

A 504 error means one part of the server, usually the web server or a proxy, waited for PHP or the database, and the wait ran out. The page itself may load fine on the next try.

Likely causes

  • A plugin runs a slow query on a page, such as a report or a search.
  • The database is slow because of a large table or a missing index.
  • The CDN or proxy has a short timeout that the page exceeds.

Ready to act on this?

Get a written review of your site, or send us your question and we will reply within 24 hours.

How to find it

Turn off recent plugins and test the page again. Read the hosting error log for the same time. If the slow page is the checkout or a search, check the database queries with a query monitor plugin on a copy of the site.

For a page that times out only at peak hours, contact us with the page address and the time it failed.

Related services

Not sure where your site stands?

Send us the details and we will reply within 24 hours with a clear next step.