Fix 504 error timeout

    Have you ever received a 504 port timeout error on your WordPress site ? This error can make your site inaccessible to users. The worst thing is that it can disappear and reappear by itself if the underlying problem is not fixed. In this article, we will show you how to fix the 504 port timeout error in WordPress .

    fix 504 error timeouts

    What causes port 504 timeout error?

    The 504 port timeout error usually occurs when the server cannot complete a request.

    For example, if you're using a website firewall like Sucuri and can't connect to your WordPress server, you'll see an error waiting for port 504.

    The appearance and notification of the error page may be displayed differently depending on the WordPress hosting company, the proxy server or browser you are using. The following are some of the most common 504 port timeout error messages.

    • Waiting time for port 504
    • HTTP 504
    • 504 LRI
    • Timeout (504)
    • HTTP 504 Error - Timeout
    • Gate timeout error

    error code 504

    Although the most common reason for the error is that the proxy server cannot access the source server, it can also be triggered by other hosting configuration issues.

    See how to easily troubleshoot and fix 504 port timeout errors in WordPress.

    1. Wait and reload

    Sometimes, the 504 port timeout error may be simply due to a temporary problem on your WordPress hosting servers. Wait a few minutes and then try reloading your site.

    If the problem goes away, then you don't need to take any more steps. However, if the error persists or reappears after some time, then continue reading to troubleshoot and fix the problem.

    2. Turn off the VPN

    Turn off the 504 error correction

    If you are using a VPN service to browse the web, try turning it off. Sometimes your VPN server may not receive a response from your managed WordPress host and this will result in a 504 time-out error.

    If your site reappears, then this means that the VPN server is the culprit. Now if using a VPN is important to you, then you can try switching to another VPN server. If you get an error even after changing the server, then you will want to contact your VPN service provider for assistance.

    3. Turn off Website Firewall

    If you are using a DNS-level website firewall like Sucuri or Cloudflare, try temporarily disabling the firewall. This will allow you to connect directly to your WordPress host.

    dns off 504 error correction

    If that fixes the problem, then it is likely that your host is blocking firewall IP addresses that could be causing this problem. You will need to contact your firewall service provider to get a list of their IP addresses and then contact your web server to whitelist those IPs.

    Sometimes, turning off the firewall may show you the actual server error message. In that case, you should consult the list of common WordPress errors to fix specific problems.

    4. Disable your network proxy

    If you are connected to the internet through a proxy server, then that server may not be able to receive a response from your WordPress site.

    Try accessing your website with another internet connection or using online services to see if your website doesn't work  just for you or the people  .

    If it doesn't suit you, then you need to change your network settings. You can contact your internet service provider or network administrator to fix your problem.

    5. Change your DNS server

    Your internet connection uses something called a DNS server. These servers help your computer connect to different servers on the internet.

    If the DNS server you are using is not working or cannot connect to your website, you may see a port timeout error of 504. The easiest way to check this is by changing the machine. DNS server that your device is using.

    On Windows computers , you can find them in Control Panel »Network and Sharing Center screen  .

    install dns windows

    On Mac computers, you can find them in  Settings »Network  . Click the Advanced button, then select the DNS tab.

    You can change your DNS server addresses to and and apply the changes.

    Try to access your website now. If this resolves your error, you're done. The problem is with your internet connection and has now been fixed.

    6. Clean up your WordPress database

    A corrupted WordPress database can also cause a timeout error for port 504. Don't worry, your WordPress data is most likely secure. However, your database may need a little cleanup.

    This can be easily done by optimizing your WordPress database using phpMyAdmin or using a plugin like WP-Sweep. Make sure you back up your WordPress database before taking any action.

    7. Disable the WordPress plugin and switch to the default theme

    WordPress plugins and themes are less likely to cause a timeout error for port 504. However, if a plugin or theme is making too many requests to the server, then it is likely that some of these requests have could be canceled and cause a 504 port timeout error.

    To check this, you need to deactivate all WordPress plugins via FTP or directory management on the host.

    deactivate plugin on wordpress

    Then, visit your website to see if the error has been resolved.

    If so, then one of your plugins was causing the problem. Now you need to activate all plugins one by one until you can reproduce the error. This will help you locate the plugin that is responsible for the error.

    If disabling plugins does not solve your problem, then you will want to check your WordPress theme. You will need to  convert your WordPress theme via phpMyAdmin  .

    After switching your theme to the default WordPress theme, visit your website to see if it works.

    8. Troubleshooting

    If all else fails and you're still unable to resolve the 504 port timeout error, then follow the steps in  our final WordPress troubleshooting guide for beginners.

    Lastly, as a last resort, you need to contact your hosting provider for assistance. They can fix the problem or point you in the right direction.

    We hope this article helped you learn how to fix 504 port timeout errors in WordPress.

    Không có nhận xét nào