How to Fix the 504 Gateway Timeout Error in WordPress
Have you ever ever gotten a 504 gateway timeout error for your WordPress website online? This mistake could make your web site inaccessible to customers. What’s worst is that it could disappear and reappear by itself if the underlying factor isn’t fastened. On this article, we can display you how you can repair the 504 gateway timeout error in WordPress.
What Reasons 504 Gateway Timeout Error?
The 504 gateway timeout error is typically 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 for your WordPress hosting corporate, the proxy server, or the browser you’re the usage of. Following are one of the vital maximum commonplace 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 commonest reason why for the mistake is a proxy server not able to succeed in the upstream server, it may also be brought on by means of different internet hosting configuration problems.
That being mentioned, let’s see how you can simply troubleshoot and fasten the 504 gateway timeout error in WordPress.
1. Wait and Reload
Once in a while the 504 gateway timeout error might merely be led to by means of a brief glitch for your WordPress internet hosting servers. Give it a couple of mins after which check out reloading your web site.
If the problem disappears, then you definately don’t want to take any longer 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 check out disabling it. Once in a while your VPN server would possibly not have the ability to get a reaction out of your managed WordPress hosting server, and this will likely lead to 504 gateway timeout error.
In case your web site reappears, then which means the VPN server was once the wrongdoer. Now if the usage of the VPN is vital for you, then you’ll be able to check out switching to another VPN server. In case you are seeing the mistake even after converting servers, then you might need to touch your VPN carrier supplier for enhance.
three. Flip off Site Firewall
In case you are the usage of a DNS stage web site firewall like Sucuri or Cloudflare, then attempt to quickly disable the firewall. This will likely help you attach in your WordPress internet hosting server without delay.
If that fixes the problem, then it’s most probably that your internet hosting server is obstructing the firewall IP addresses which is able to purpose this factor. It is very important touch your firewall carrier supplier to get their listing of IP addresses, after which touch your internet host to whitelist the ones IPs.
Once in a while disabling the firewall may display you the real server error realize. If so, you will have to consult with our listing of common WordPress errors to mend the particular factor.
four. Disable Your Community Proxy
In case you are attached to the web thru a proxy server, then that server is also not able to get a reaction out of your WordPress web site.
Take a look at gaining access to your web site the usage of a distinct web connection or use on-line services and products to peer in case your website is down just for you or everyone.
Whether it is down only for you, then you want to switch your community settings. You’ll be able to touch your web carrier supplier or a community admin to troubleshoot the problem for you.
five. Alternate Your DNS Servers
Your web connection makes use of one thing referred to as DNS servers. Those servers lend a hand your laptop hook up 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 web site, then you need to see a 504 gateway timeout error. The best way to test that is by means of converting the DNS servers your software is the usage of.
On Home windows computer systems, you’ll be able to to find them underneath Keep watch over Panel » Community and Sharing Middle display.
On Mac computer systems, you’ll be able to to find them underneath Settings » Community. Click on at the Complicated button, after which make a choice the DNS tab.
You’ll be able to alternate your DNS server deal with to eight.eight.eight.eight and eight.eight.four.four and observe adjustments.
Take a look at visiting your web site now. If this solved your error, then you’re all executed. The issue was once along 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 might want just a little a little of spring cleansing.
This may also be simply executed by means of optimizing your WordPress database using phpMyAdmin or the usage of a plugin like WP-Sweep. You should definitely backup the WordPress database earlier than acting any motion.
7. Deactivate WordPress Plugins and Transfer to Default Theme
WordPress plugins and subject matters are much less prone to purpose 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 probably that a few of these requests might drop off and cause a 504 gateway timeout error.
To check this, you want to deactivate all WordPress plugins by way of FTP.
After that, consult with your web site to peer if the mistake has resolved.
Whether it is, then one among your plugins was once 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 permit you to find the plugin liable for the mistake.
If deactivating plugins didn’t remedy your factor, then you might need to test your WordPress theme. It is very important switch WordPress theme via phpMyAdmin.
After switching your theme to the default WordPress theme, consult with your web site to peer if it’s running.
eight. Extra Troubleshooting
If all else fails, and you’re nonetheless not able to unravel the 504 gateway timeout error, then practice the stairs in our final WordPress troubleshooting guide for novices.
In the end, as a final lodge, you want to succeed in out in your internet hosting supplier for enhance. They are able to repair the problem or level you in the appropriate course.
We are hoping this newsletter helped you discover ways to repair 504 gateway timeout error in WordPress. You may additionally need to see our information on how you can protect WordPress against brute force attacks.