Skip to content
OSULZER.AT

Is my website down?

Error 504: Gateway Timeout

Is your server responding too slowly? Check right here how long your site takes and whether it fails with a 504.

Checks the status code, every redirect, the variants with and without www and over http and https, the SSL certificate and the response time.

Free, no sign-up - no data about you is stored.

Technical finding without guarantee. The check runs once from a server in Germany. If your website is only unreachable from certain networks or countries, the result may differ.

What does Error 504 mean?

Like a 502, a 504 Gateway Timeout happens when two servers work together. The server in front, such as nginx, a load balancer or Cloudflare, passed the request on and got a connection, but the response didn't arrive within the configured time. So it gives up and reports 504.

The server behind may still be working, the response just never makes it back. An import, an order or a backup may therefore have completed despite the 504. With Cloudflare, the equivalent error is 524.

Common causes.

  • Long-running tasks

    Imports, exports, backups, image processing or large reports take longer than the proxy is willing to wait.

  • Slow database

    Expensive queries, missing indexes or a bloated database slow down every page.

  • External services hang

    While loading, the site waits for a third-party API, for license checks, reviews or shipping, that doesn't respond.

  • All PHP workers busy

    New requests have to wait until a worker is free. Under load the queue grows until the proxy gives up.

  • Timeouts don't match

    The proxy waits less time than PHP is allowed to run. So the proxy gives up while PHP is still legitimately working.

With WordPress and hosting.

On WordPress, 504s are common in the dashboard: importing products, regenerating image sizes, running backups through a plugin or updating many plugins at once. Page builders that do heavy work on save also run into timeouts. On the front end it is usually slow database queries, plugins that call external services on every request, or missing caching.

In a chain of Cloudflare, nginx and PHP-FPM, every step has its own time limit. They need to match, otherwise one step gives up while the next is still waiting. On shared hosting your host sets these values. The PHP limit max_execution_time can often be changed in the panel, the proxy timeout usually can't.

How to fix it.

  1. Measure the response time

    The checker above shows how long the page takes. If it already takes several seconds without an error, the 504 is just the tip of the iceberg.

  2. Check the result, don't just retry

    If the 504 came during an order, import or update, first check whether the action completed before starting it again.

  3. Split up big tasks

    Import in smaller batches, run backups on a schedule outside the browser, update plugins one at a time instead of all at once.

  4. Find slow plugins

    A profiling plugin like Query Monitor shows which queries and external calls take long. Replace slow plugins or configure them differently.

  5. Use caching

    A page cache serves finished pages without involving PHP and the database. That cuts response times drastically for most visitors.

  6. Align the time limits

    If the code is fine and the task is simply big, the timeouts along the chain can be raised. That's a server setting, and on shared hosting it's up to your host.

Impact on Google.

Google treats 504 like any other 5xx error: crawling slows down, and if the errors persist, pages drop out of the index. On top of that, slow responses hurt even without errors, because Google crawls slow servers less and visitors bounce.

A 504 is almost always a sign of a speed problem. If your site is slow in general, a combination of caching, clean-up and suitable managed WordPress hosting helps.

Good to know

Questions about Error 504?

The most common questions, answered briefly.

Questions about Error 504

What's the difference between 504 and 502?

With 504 the connection works but the response comes too late. With 502 the response is broken or missing entirely.

Did my order go through despite the 504?

Possibly, since the server may have kept working. Check your emails and customer account before ordering again.

What is a Cloudflare 524?

Cloudflare's version of a timeout: the connection to the server was established, but it didn't respond for 100 seconds.

All status codes at a glance.

2xx: Success

  • 200OKAll good: the server understood the request and delivers the page.
  • 201CreatedThe request succeeded and created something new, for example a record via an API.
  • 204No ContentSuccessful, but the response has no body. Typical for APIs and background requests, not for regular pages.

3xx: Redirects

5xx: Server errors

No status code: connection errors

New project?

Contact.

Tell me briefly about your project - I'll get back to you personally.

Your data is used solely to handle your inquiry. More in the privacy policy.