How to Fix the 504 Gateway Timeout Error in WordPress

0 167

Have you ever gotten a 504 gateway timeout error in your WordPress website? This error could make your website inaccessible to customers. What’s worst is that it might disappear and reappear by itself if the underlying subject shouldn’t be mounted. On this article, we’ll present you the right way to repair the 504 gateway timeout error in WordPress.

What Causes 504 Gateway Timeout Error?

The 504 gateway timeout error is normally brought on when a server is unable to connect with an upstream server to finish a request.

For instance, if you’re utilizing a website firewall like Sucuri, and it’s unable to connect with your WordPress server, then you will note a 504 gateway timeout error.

The error web page’s look and the message could also be displayed otherwise relying upon your WordPress hosting firm, the proxy server, or the browser you’re utilizing. Following are among the most typical 504 gateway timeout error messages.

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

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

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

1.Wait and Reload

Typically the 504 gateway timeout error could merely be brought on by a short-lived glitch in your WordPress internet hosting servers. Give it a couple of minutes after which attempt reloading your website.

If the difficulty disappears, then you definitely don’t have to take any additional steps. Nonetheless, if the error persists or reappears after some time, then proceed to study to troubleshoot and repair the issue.

2.Flip off VPN

If you’re utilizing a VPN service to browse the net, then attempt disabling it. Typically your VPN server could not be capable to get a response out of your managed WordPress hosting server, and this may end in 504 gateway timeout error.

In case your website reappears, then which means that the VPN server was the perpetrator. Now if utilizing the VPN is essential for you, then you possibly can attempt switching to a unique VPN server. If you’re seeing the error even after altering servers, then you definitely would need to contact your VPN service supplier for the assist.

3.Flip off Website Firewall

If you’re utilizing a DNS stage website firewall like Sucuri or Cloudflare, then attempt to quickly disable the firewall. This can let you connect with your WordPress internet hosting server instantly.

If that fixes the difficulty, then it seems that your internet hosting server is obstructing the firewall IP addresses which might trigger this subject. You will want to contact your firewall service supplier to get their record 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, it is best to seek advice from our record of common WordPress errors to repair the particular subject.

4.Disable Your Community Proxy

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

Attempt accessing your website utilizing a unique web connection or use online companies to see in case your website is down just for you or everyone.

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

Advertisement

5. Change Your DNS Servers

Your web connection makes use of one thing known as DNS servers. These servers assist your laptop to connect with the completely different servers on the web.

If the DNS servers you’re utilizing are down or unable to connect with your website, then you possibly can see a 504 gateway timeout error. The best solution to examine that is by altering the DNS servers your gadget is utilizing.

On Home windows computer systems, you will discover them underneath Management Panel » Community and Sharing Heart display.

On Mac computer systems, you will discover them underneath Settings » Community. Click on on the Superior button, after which choose the DNS tab.

You possibly can change your DNS server deal with to eight.8.8.Eight and eight.8.4.Four and apply adjustments.

Attempt visiting your website now. If this solved your error, then you’re all carried out. The issue was along with your web connection, and it’s now mounted.

6.Clear up your WordPress Database

A corrupt WordPress database may set off a 504 gateway timeout error. Don’t fear, your WordPress knowledge is almost certainly protected. Nonetheless, your database may have a little bit a little bit of spring cleaning.

This may be simply carried out by optimizing your WordPress database using phpMyAdmin or utilizing a plugin like WP-Sweep. Be sure to backup the WordPress database earlier than performing any motion.

7. Deactivate WordPress Plugins and Swap to Default Theme

WordPress plugins and themes are much less prone to trigger a 504 gateway timeout error. Nonetheless, if a plugin or theme is making too many requests to the server, then it seems that a few of these requests could drop off and set off a 504 gateway timeout error.

To check this, you’ll want to deactivate all WordPress plugins through FTP.

After that, go to your website to see if the error has resolved.

Whether it is, then one in each of your plugins was inflicting the difficulty. You now have to activate all plugins one after the other till you possibly can reproduce the error. This can enable you to find the plugin accountable for the error.

If deactivating plugins didn’t remedy your subject, then you definitely would need to examine your WordPress theme. You will want to switch WordPress theme via phpMyAdmin.

After switching your theme to the default WordPress theme, go to your website to see if it’s working.

After switching your theme to the default WordPress theme, go to your website to see if it’s working.

8. Extra Troubleshooting

If all else fails, and you’re nonetheless unable to unravel the 504 gateway timeout error, then observe the steps in our final WordPress troubleshooting guide for newcomers.

Lastly, as a final resort, you’ll want to attain out to your internet hosting supplier for the assist. They can repair the difficulty or level you in the suitable path.

We hope this text helped you discover ways to repair 504 gateway timeout error in WordPress. You might also need to see our information on the right way to protect WordPress against brute force attacks.

In case you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Facebook.

Advertisement

Comments
Loading...