Have you ever ever gotten a 504 gateway timeout error in your WordPress web site? This mistake could make your site inaccessible to customers. What’s worst is that it might probably disappear and reappear by itself if the underlying factor isn’t fastened. On this article, we will be able to display you the right way to repair the 504 gateway timeout error in WordPress.
What Reasons 504 Gateway Timeout Error?
The 504 gateway timeout error is most often led to when a server is not able to connect with an upstream server to finish a request.
The mistake web page’s look and the message is also displayed in a different way relying in your WordPress hosting corporate, the proxy server, or the browser you’re the usage of. Following are probably the most maximum not unusual 504 gateway timeout error messages.
- 504 Gateway Timeout
- HTTP 504
- 504 ERROR
- Gateway Timeout (504)
- HTTP Error 504 – Gateway Timeout
- Gateway Timeout Error
Whilst the most typical reason why for the mistake is a proxy server not able to achieve the upstream server, it can be prompted by way of different webhosting configuration problems.
That being mentioned, let’s see the right way to simply troubleshoot and fasten the 504 gateway timeout error in WordPress.
1. Wait and Reload
Every now and then the 504 gateway timeout error would possibly merely be led to by way of a short lived glitch in your WordPress webhosting servers. Give it a couple of mins after which take a look at reloading your site.
If the problem disappears, then you definitely don’t want to take any more steps. On the other hand, if the mistake persists or reappears after some time, then proceed studying to troubleshoot and fasten the issue.
2. Flip off VPN
In case you are the usage of a VPN service to browse the internet, then take a look at disabling it. Every now and then your VPN server would possibly not have the ability to get a reaction out of your managed WordPress hosting server, and this may occasionally lead to 504 gateway timeout error.
In case your site reappears, then which means the VPN server used to be the wrongdoer. Now if the usage of the VPN is essential for you, then you’ll be able to take a look at switching to another VPN server. In case you are seeing the mistake even after converting servers, then you could need to touch your VPN provider supplier for strengthen.
3. Flip off Web site Firewall
In case you are the usage of a DNS degree site firewall like Sucuri or Cloudflare, then attempt to briefly disable the firewall. This will likely assist you to attach for your WordPress webhosting server immediately.
If that fixes the problem, then it’s most likely that your webhosting server is obstructing the firewall IP addresses which is able to reason this factor. It is very important touch your firewall provider supplier to get their checklist of IP addresses, after which touch your internet host to whitelist the ones IPs.
Every now and then disabling the firewall would possibly display you the real server error realize. If so, you will have to consult with our checklist of common WordPress errors to mend the precise factor.
4. Disable Your Community Proxy
In case you are attached to the web via a proxy server, then that server is also not able to get a reaction out of your WordPress site.
Take a look at having access to your site the usage of a distinct web connection or use on-line services and products to look in case your website is down just for you or everyone.
Whether it is down only for you, then you wish to have to modify your community settings. You’ll touch your web provider supplier or a community admin to troubleshoot the problem for you.
5. Alternate Your DNS Servers
Your web connection makes use of one thing referred to as DNS servers. Those servers lend a hand your laptop connect with the other servers on the net.
If the DNS servers you’re the usage of are down or not able to connect with your site, then you want to see a 504 gateway timeout error. One of the best ways to test that is by way of converting the DNS servers your software is the usage of.
On Home windows computer systems, you’ll be able to in finding them beneath Keep watch over Panel » Community and Sharing Middle display screen.
On Mac computer systems, you’ll be able to in finding them beneath Settings » Community. Click on at the Complex button, after which make a selection the DNS tab.
You’ll trade your DNS server deal with to eight.8.8.8 and eight.8.4.4 and follow adjustments.
Take a look at visiting your site now. If this solved your error, then you’re all finished. The issue used to be together with your web connection, and it’s now fastened.
6. Blank up your WordPress Database
A corrupt WordPress database may additionally cause a 504 gateway timeout error. Don’t concern, your WordPress information is in all probability secure. On the other hand, your database would possibly want a little bit somewhat of spring cleansing.
This can also be simply finished by way of optimizing your WordPress database using phpMyAdmin or the usage of a plugin like WP-Sweep. Be sure to backup the WordPress database sooner than appearing any motion.
7. Deactivate WordPress Plugins and Transfer to Default Theme
WordPress plugins and subject matters are much less more likely to reason a 504 gateway timeout error. On the other hand, if a plugin or theme is making too many requests to the server, then it’s most likely that a few of these requests would possibly drop off and cause a 504 gateway timeout error.
To check this, you wish to have to deactivate all WordPress plugins by the use of FTP.
After that, discuss with your site to look if the mistake has resolved.
Whether it is, then one in every of your plugins used to be inflicting the problem. You presently want to turn on all plugins one at a time till you’ll be able to reproduce the mistake. This will likely allow you to find the plugin liable for the mistake.
If deactivating plugins didn’t remedy your factor, then you could need to test your WordPress theme. It is very important switch WordPress theme via phpMyAdmin.
After switching your theme to the default WordPress theme, discuss with your site to look if it’s operating.
8. Extra Troubleshooting
If all else fails, and you’re nonetheless not able to resolve the 504 gateway timeout error, then practice the stairs in our final WordPress troubleshooting guide for rookies.
In any case, as a final hotel, you wish to have to achieve out for your webhosting supplier for strengthen. They can repair the problem or level you in the fitting path.
We are hoping this text helped you learn 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.
The put up How to Fix the 504 Gateway Timeout Error in WordPress gave the impression first on WPBeginner.WordPress Maintenance