How to Fix 504 Gateway Timeout Error in WordPress?

How to Fix 504 Gateway Timeout Error in WordPress?

Have you ever had a 504 timeout portout error on your WordPress website? This error can be caused by a page that the user is unable to access. The worst part is that it can vanish on its own and reappear the underlying problem if not restored. In this article, we will demonstrate how to resolve the 504 gateway timeout error in WordPress.

What is the source of the 504 Gateway Timeout error?

Error out of time wait port 504 frequently fails when the server is unable to connect with the line reverse server to complete the request.

For example, if you are using a site firewall like Sucuri and it cannot connect to your WordPress server, then you will see a 504 gateway timeout error.

The appearance and feel of the error page and message may differ depending on your WordPress hosting provider, proxy server, or browser. Some of the most common 504 port timeout error messages are as follows.

Gateway Timeout 504

HTTP 504

504 ERROR Gateway Timeout (504) HTTP Error 504 – Gateway Timed Out 504 Gateway Timeout Error

While the most common cause of the error is that the proxy server is unable to communicate with the upstream server, it can also be caused by other hosting configuration issues.

How to Fix 504 Gateway Timeout Error in WordPress?

Having said that, let’s look at how to easily troubleshoot and resolve the 504 port timeout in WordPress.

1. Reload and wait

A 504 port timeout error can sometimes be caused simply by a temporary glitch on your WordPress hosting server. Allow a few minutes before attempting to reload your website.

See also  How to create domain 100% free?

If the problem resolves itself, there is no need to take any further action. Continue reading for troubleshooting and troubleshooting if the error persists or reappears after a while.

2. Disable VPN

Try disabling your VPN service if you use it to browse the web. When your VPN server does not receive a response from your managed WordPress host, a 504 port timeout error occurs.

If your site reappears, it is likely that the VPN server is to blame. If you value the use of a VPN, you can try switching to a different VPN server. If the error persists after switching servers, contact your VPN service provider for assistance.

3. Disable the Website Firewall

If you use a DNS level website firewall, such as Sucuri or Cloudflare, try temporarily disabling the firewall. This will allow you to connect to your WordPress host directly.

If you use a VPN service to browse the web, try disabling it. Sometimes your VPN server will not receive a response from your managed WordPress host, resulting in a 504 port timeout error.

If your site reappears, the VPN server is to blame. If using a VPN is important to you, you can try switching to a different VPN server. If you still see the error after changing servers, contact your VPN service provider for assistance.

If this resolves the issue, it is likely that your host is blocking firewall IP addresses that may be causing the issue. You must first contact your firewall service provider to obtain a list of their IP addresses, and then contact your web host to whitelist those IP addresses.

See also  How to Include CSS in WordPress Themes?

Disabling the firewall may reveal the actual server error message. In that case, please see our list of common WordPress errors for specific troubleshooting.

4. Turn off your network proxy.

If you access the internet via a proxy server, that server may not receive a response from your WordPress site.

If the DNS server you are using is down or unable to connect to your site, you may see a 504 port timeout error. The simplest way to test this is to switch the DNS server that your device is using.

You can find them in the Control Panel » Network and Sharing Center screen on a Windows computer.

On a Mac, you can find them in System Preferences » Network. Select the DNS tab after clicking the Advanced button.

Now try to access your website. If this solves your error, you’re done. The issue was with your Internet connection, which has now been resolved.

5. Purge your WordPress database

A 504 port timeout error can also be caused by a corrupt WordPress database. Don’t be concerned; your WordPress data is most likely secure. However, your database may require some cleanup in the spring.

This is easily accomplished by optimizing your WordPress database with phpMyAdmin or by using a plugin such as WP-Sweep. Before proceeding, ensure that you have backed up your WordPress database.

6. Disable WordPress plugins and return to the default theme

504 gateway errors are less likely to be caused by WordPress plugins and themes. However, if a plugin or theme makes too many requests to the server, some of these requests may fail and result in a 504 port timeout error.

See also  What is Hosting? Web hosting explained for beginners

To test this, deactivate all WordPress plugins using FTP.

Turn off all WordPress plugins.

Then, return to your website to see if the problem has been resolved.

If that’s the case, it’s likely that one of your plugins is causing the issue. You must now activate each plugin one by one until the error is reproduced. This will assist you in locating the plugin that is causing the error.

If deactivating plugins does not resolve your issue, you should look into your WordPress theme. You must convert your WordPress theme using phpMyAdmin.

Visit your website after switching to the default WordPress theme to see if it works.

7. Additional Troubleshooting

If everything else fails and you still can’t fix the 504 gateway timeout error, follow the steps in our ultimate WordPress troubleshooting guide for beginners.

Finally, you should contact your hosting provider for assistance. They can either solve the issue or point you in the right direction.