Skip to main content

How do I solve a 504 gateway timeout?

A 504 Gateway Timeout Error means your web server didn’t receive a timely response when it attempted to load one of your pages.

Written by Jessica Risch
Updated over 2 weeks ago

Introduction

A 504 Gateway Timeout Error means that your web server did not receive a timely response from another server while attempting to load a page. In simple terms: the servers running your website are not communicating with each other fast enough. This is a general error message, which means the exact cause can vary depending on the situation.

Problem

You will see one of the following messages in your browser instead of your website:

  • 504 Gateway Timeout

  • HTTP 504

  • Gateway Timeout (504)

  • HTTP Error 504 - Gateway Timeout

This often happens due to temporary server glitches, network issues, or heavy processes that take too long to execute.

How to solve

Follow these steps to resolve the 504 error:

  1. Wait a few minutes: Sometimes the error is caused by a temporary glitch on your hosting server. Refresh the page after a few minutes.

  2. Disable VPN: Are you using a VPN? Disable it temporarily to see if the connection restores.

  3. Check your Firewall (e.g., Cloudflare): If you use a DNS-level firewall, disable it temporarily to connect directly to your hosting server.

  4. Check your DNS settings: If your DNS servers are unavailable, it can cause a 504 error. You can try changing the DNS settings on your computer (e.g., to Google DNS).

  5. Clean up the database: A corrupt WordPress database can cause delays. Contact your hosting provider to check your database via PHPMyAdmin (always make a backup first!).

  6. Test Plugins and Theme: Disable all your plugins (e.g., by temporarily renaming the plugins folder via FTP) and switch to a standard theme like Storefront to see if a specific script is causing the delay.


Can’t figure it out? You can always send a message to the support team via the chat bubble at the bottom right 🎈 Support to the rescue 👨‍💻 👩‍💻

Did this answer your question?