How to Fix the 504 Gateway Timeout Error in WordPress

Are you seeing a 504 gateway timeout error on your WordPress site.This error can make your website inaccessible to users. Even worse, it can disappear

WordPress Information:How to Fix the 504 Gateway Timeout Error in WordPress

Are you seeing a 504 gateway timeout error in your web site?

This error could make your web site inaccessible to customers. Even worse, may possibly disappear and reappear by itself if underlying problem shouldn't be mounted.

On this article, we'll present you the way to repair the 504 gateway timeout error in WordPress.

How to Fix the 504 Gateway Timeout Error in WordPress

What Causes the 504 Gateway Timeout Error?

The 504 gateway timeout error is often brought on when a server is unable to join to an upstream server to full a request.

For instance, in case you are utilizing an internet site firewall Sucuri and it's unable to join to your WordPress server, then you will note a 504 gateway timeout error.

How to Fix the 504 Gateway Timeout Error in WordPress

The error web page's look and the message might look totally different relying in your WordPress internet hosting firm, the proxy server, or the browser you might be utilizing.

Listed here are a few of the commonest 504 gateway timeout error messages:

  • 504 Gateway Timeout
  • HTTP 504
  • 504 ERROR
  • Gateway Timeout (504)
  • HTTP Error 504 – Gateway Timeout
  • Gateway Timeout Error

Whereas the commonest cause for the error is a proxy server unable to attain the upstream server, it will also be triggered by different internet hosting configuration points.

That being mentioned, let's see how to simply troubleshoot and repair the 504 gateway timeout error in WordPress.

  1. Wait and Reload the Web page
  2. Flip Off the VPN
  3. Flip Off Your Web site Firewall
  4. Disable Your Community Proxy
  5. Change Your DNS Servers
  6. Clear up your WordPress Database
  7. Deactivate WordPress and Swap to a Default Theme
  8. Extra Troubleshooting

1. Wait and Reload the Web page

Typically the 504 gateway timeout error might merely be brought on by a brief glitch in your WordPress internet hosting servers. Give it a couple of minutes, after which attempt reloading your WordPress web site.

If the problem disappears, then you definitely don't want to take any additional steps. Nevertheless, if the error persists or reappears after some , then proceed studying to troubleshoot and repair the drawback.

2. Flip Off the VPN

If you're utilizing a VPN to browse the net, then you possibly can attempt disabling it.

How to Fix the 504 Gateway Timeout Error in WordPress

Typically your VPN server will not be in a position to get a response out of your managed WordPress internet hosting server, and this can outcome in a 504 gateway timeout error.

In case your web site reappears, then because of this the VPN server was the perpetrator.

If utilizing the VPN is necessary for you, then you possibly can attempt switching to a special VPN server. Nevertheless, in the event you see the error even after altering servers, then you'll need to contact your VPN service supplier for help.

3. Flip Off Your Web site Firewall

If you're utilizing a DNS-level web site firewall like Sucuri or Cloudflare, then attempt to quickly disable the firewall. This may enable you to join to your WordPress internet hosting server straight.

How to Fix the 504 Gateway Timeout Error in WordPress

If that fixes the problem, then your internet hosting server is probably going the firewall IP addresses, which might trigger this problem. You will have to contact your firewall service supplier to get checklist of IP addresses, after which contact your net host to whitelist these IPs.

Typically disabling the firewall would possibly present you the precise server error discover. In that case, you need to refer to our checklist of widespread WordPress errors to repair the particular problem.

4. Disable Your Community Proxy

If you're linked to the web by way of a proxy server, then that server could also be unable to get a response out of your WordPress web site.

Attempt accessing your web site utilizing a special web connection or use on-line providers to see in case your web site is down only for you or everybody.

Whether it is down only for you, then you'll need to change your community settings. You possibly can contact your web service supplier or a community admin to troubleshoot the problem for you.

5. Change Your DNS Servers

Your web connection makes use of thing referred to as DNS servers. These servers assist your laptop join to the totally different servers on the web.

If the DNS servers you might be utilizing are down or unable to join to your web site, then you might see a 504 gateway timeout error. The simplest method to test that is by altering the DNS servers your gadget is utilizing.

On Home windows computer systems, you'll find them by going to Management Panel » Community and Web » Community and Sharing Heart » Change adapter settings.

Then, click on in your community, choose ‘Change settings of this connection', and select ‘Web Protocol Model 4' from the dropdown menu. Now you can manually enter DNS server addresses.

How to Fix the 504 Gateway Timeout Error in WordPress

On Mac computer systems, you'll find DNS settings by going to Settings » Community.

Click on on the ‘Superior' button, after which choose the ‘DNS' tab.

How to Fix the 504 Gateway Timeout Error in WordPress

We suggest altering your DNS server handle to 8.8.8.8 and eight.8.4.4 and making use of the adjustments.

Attempt visiting your web site once more. If this solved your error, then you might be all performed. The issue was together with your web connection, and it's now mounted.

6. Clear up your WordPress Database

A corrupt WordPress database might also set off a 504 gateway timeout error. Don't fear, your WordPress knowledge is almost definitely secure. Nevertheless, your database may have just a little little bit of spring cleansing.

This may be simply performed by optimizing your WordPress database utilizing phpMyAdmin or utilizing a plugin like WP-Sweep. Simply be certain to again up the WordPress database earlier than making any adjustments.

7. Deactivate WordPress Plugins and Swap to a Default Theme

WordPress plugins and themes are much less seemingly to trigger a 504 gateway timeout error. Nevertheless, if a plugin or theme is making too many requests to the server, then a few of these requests might drop off and set off a 504 gateway timeout error.

To check this, you want to deactivate all WordPress plugins by way of FTP.

How to Fix the 504 Gateway Timeout Error in WordPress

After that, go to your web site to see if the error has been resolved.

Whether it is, then considered one of your plugins was inflicting the problem. You now want to activate all plugins one after the other till you possibly can reproduce the error. This may provide help to find the plugin answerable for the error.

If deactivating plugins didn't remedy your problem, then you definitely would need to test your WordPress theme. You will have to swap your WordPress theme by way of phpMyAdmin.

After switching your theme to the default WordPress theme, you want to go to your web site to see if it's working. Whether it is, then your authentic theme was the drawback.

8. Extra Troubleshooting

If all else fails, and you might be nonetheless unable to remedy the 504 gateway timeout error, then you possibly can comply with the steps in our final WordPress troubleshooting information for newbies.

Lastly, as a final resort, you possibly can attain out to your internet hosting supplier for help. They might find a way to repair the problem or level you in the proper course.

We hope this text helped you find out how to repair the 504 gateway timeout error in WordPress. You may additionally need to see our information on how to shield WordPress towards brute drive assaults and see our high picks for the greatest WordPress plugins to develop your web site.

James

James

Young people passionate about website design and development. Specialized in computer science in college and has in-depth understanding and technical proficiency in both front-end and back-end development. I share my programming works and experiences on my personal blog, and provide some free website building tutorials.

Articles: 115

Leave a Reply

Your email address will not be published. Required fields are marked *