Home » WordPress Tutorials » Administration » How to Fix Error 504 Gateway Timeout in WordPress

How to Fix Error 504 Gateway Timeout in WordPress

Error 504 Gateway Timeout in WordPress can really be annoying for you and your website visitors. The good news is that as with any other 5xx status code errors such as HTTP Error 500, Error 501 Not Implemented, and Error 503 Service Unavailable, the Gateway Timeout issue can be fixed by applying various simple methods.

In the following paragraphs, you will read about what Error 504 is, what causes it, and how you can fix it on your website.

 

How to Fix Error 504 Gateway Timeout in WordPress

WordPress 504 Gateway Timeout is caused by a proxy or gateway server that is not able to receive the response from the server that hosts your website.

Although annoying, there’s a lot you can do to deal with the problem.

 

Method 1: Reload the requested page

As simple as it sounds, a quick page refresh can fix the issue. Sometimes Error 504 Gateway Timeout can be caused by a momentary malfunction between servers, which can quickly be overcome by reloading the web page you want to visit.

If this doesn’t help, proceed with the next method.

 

Method 2: Restart your device

Similar to the page refresh, sometimes rebooting your device can solve the problem. Sometimes, too much information and too many working hours can make even a powerful device malfunction. This is why it is a good idea to try turning off and on the unit, and try to open your site one more time.

If this doesn’t work, however, proceed with the next suggestion.

 

Method 3: Disconnect from VPN

If you are using VPN, there’s a chance that it interrupts the proper communication between servers and browsers. To see whether this is the case, simply disconnect from it and then reconnect again.

After that try to open your site. If you no longer see the error code, then this was the root of the problem.

If you still see the Error 504 Gateway Timeout, then the issue lies elsewhere.

Proceed with the next method.

 

Method 4: Check your WordPress Firewall

If you have installed a WordPress plugin with security and firewall features, try to deactivate and activate it again – simply go to your Plugins directory, locate the security plugin and disable it. After that try to open your site – if it works just fine, then you managed to fix the problem.

If you still see the error message, then the problem lies elsewhere.

If you are unsure how a WordPress plugin can be activated and deactivated, continue reading, as we explain how to do so in detail.

Also, if you are new to the topic, check out what a WordPress plugin is.

 

Method 5: Check for a malfunctioning WordPress plugin

Sometimes, a plugin with errors in its code can cause various performance problems and connectivity issues. Such malfunctioning plugins can also prompt WordPress to display an Error 504 message on your website.

To see whether this is the case, you should deactivate all your plugins at once, and then activate each one of them and see what happens when you try to load your website.

Here’s how to do so:

  1. Enter your WordPress admin panel and go to Plugins->Installed Plugins:

WordPress Installed Plugins library

 

  1. Deactivate all plugins:

WordPress Installed Plugins list

Now, open your website. If you no longer see the error message, then it is highly likely that one of the installed plugins is the root of the problem. To find out which one exactly, follow the next steps.

  1. Go back to Plugins->All Plugins and activate the first plugin in the list, while keeping the rest deactivated. Then, open your website and see whether the 504 Error message is present. If not, go back to the list with plugins, deactivate the first in the list, activate the second one, and again open the website.
  2. Repeat this step until you stumble upon the plugin that prompts the error message. Once you locate it, you can completely delete it from your WordPress system, or contact developers for further assistance.
  3. If none of the plugins prompts the error message, then the problem lies elsewhere.

 

Method 6: Change your WordPress theme

Similar to the WordPress plugins, sometimes your current WordPress theme can cause various technical issues, including the prompt of Error 504 Gateway Timeout.

To see whether your currently applied theme is the root of the problem, you should deactivate it and change it temporarily with some of the default WordPress themes.

To see whether your chosen theme is the issue, to Appearance->Themes via your WordPress dashboard:

WordPress Themes Library

 

Then, from the list with installed themes, activate one of the default ones, for example, Twenty Twenty-One:

WordPress Activate Default Theme

 

If you have deleted any unused themes and don’t have any other than your current, then read how to install WordPress themes.

Once you have activated any of the default ones, open your site. If you no longer see 504 Error across your pages, then the problem lies in your previously active theme. Should this be the case, replace it with another one of your likings, or contact developers for further support.

 

Method 6: Contact your Hosting Provider’s customer support

If nothing else works, then it is time to contact your hosting provider’s customer support team. Usually, teams are quick to respond and can tackle any technical challenge. When you reach them, explain your situation and share what you’ve tried to do to fix the problem.

In fact, when looking for a hosting provider, it is important to choose one with a qualified tech support team, as it is likely that you would want to speak to an expert when working on your WordPress website.

One such provider is ZETTAHOST – along with advanced hosting services, we also provide our customers with a 24/7 available customer support team that can assist you in any situation and at all times.

For any type of questions, don’t hesitate to contact us and build your website today!

 

Conclusion

Error 504 Gateway Timeout surely can look frightening, but luckily, there are several methods you can use to fix the problem and get your website up and running in no time.

Related:

Was this article useful?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Newest Articles:

How to Copy a Page with WordPress Gutenberg Editor

Looking for ways to copy your WordPress web pages? The Gutenberg block editor got you covered. In this article, you will read about 3 different methods you can instantly apply when crafting your WordPress website.   How to Copy a Page with WordPress Gutenberg...

How to Add Tabs to Your WordPress Site with Gutenberg

Tabs are quite useful in numerous situations and can be a fresh addition to your WordPress websites. Massively used to showcase content categories, news, and various other types of posts in a very structured manner, tabs contribute to making your site content more...

How to Create Tables in WordPress Using Gutenberg Editor

Creating a table in WordPress with the Gutenberg Block Editor is a straightforward task. Should you need to add one or several tables to your pages, the following paragraphs explain how to do so.   How to Create Tables in WordPress using Gutenberg Editor  ...

5 Best WordPress Slider Plugins for Gutenberg

When crafting your WordPress website, it is not only important to publish informative and well-structured content, but it is also crucial to make your web pages as aesthetically appealing as possible. An effective way of making your site more beautiful is by inserting...

How to Use the Navigation Block in Gutenberg

With the Gutenberg Navigation block, you can add various types of navigation on any page or within any blog post on your website. Similar to the classic WordPress menu, the Navigation block can be modified in numerous ways and become a handy tool in many situations....

Ready to Create Your Website?