{"id":29547,"date":"2021-02-17T15:55:21","date_gmt":"2021-02-17T10:10:21","guid":{"rendered":"https:\/\/rarathemes.com\/blog\/?p=29547"},"modified":"2024-08-21T13:49:56","modified_gmt":"2024-08-21T08:04:56","slug":"fix-504-gateway-timeout-wordpress","status":"publish","type":"post","link":"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/","title":{"rendered":"What is 504 Gateway Timeout and How to Fix it?"},"content":{"rendered":"\n<p>Isn\u2019t it annoying when you get the 504 gateway timeout error from the webpage you are trying to visit?&nbsp;<\/p>\n\n\n\n<p>It is even more frustrating for site owners. They lose valuable visitors due to some pesky errors, too, without the fault of their own. Moreover, if the visitors keep on receiving the error message, they lose trust in the brand and damage their reputation.&nbsp;<\/p>\n\n\n\n<p>That is why site owners must know what a 504 gateway timeout is and how they can fix it.&nbsp;<\/p>\n\n\n\n<p>If you are a site owner having the 504 error on your site or want to be prepared for such a case, this guide will be helpful.&nbsp;<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#What_is_a_504_Gateway_Timeout_Error\" >What is a 504 Gateway Timeout Error?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#How_May_You_Receive_the_504_Gateway_Timeout_Error\" >How May You Receive the 504 Gateway Timeout Error?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#Causes_of_504_Gateway_Timeout_Error\" >Causes of 504 Gateway Timeout Error<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#Fixing_the_504_Gateway_Timeout_Error\" >Fixing the 504 Gateway Timeout Error<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#1_Check_Your_Internet_Connection\" >1. Check Your Internet Connection.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#2_Double-Check_the_Website_URL\" >2. Double-Check the Website URL.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#3_Restart_Your_Router_and_Modem\" >3. Restart Your Router and Modem.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#4_Clear_Your_Browser_Cache_and_Cookies\" >4. Clear Your Browser Cache and Cookies.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#5_Check_for_Your_Servers_Scheduled_Maintenance\" >5. Check for Your Server\u2019s Scheduled Maintenance.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#6_Check_the_Firewall_Configuration\" >6. Check the Firewall Configuration.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#7_Examine_Your_Server-Side_Logs\" >7. Examine Your Server-Side Logs.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#8_Check_Your_Websites_Code_for_Bugs\" >8. Check Your Website\u2019s Code for Bugs.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#9_Proxy_Servers\" >9. Proxy Servers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#10_Check_Your_Sites_Theme_and_Plugins\" >10. Check Your Site\u2019s Theme and Plugins.&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#11_Come_back_later\" >11. Come back later.<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#FAQs_Frequently_Asked_Questions\" >FAQs (Frequently Asked Questions)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#Q_Does_504_error_impact_the_SEO\" >Q. Does 504 error impact the SEO?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#Q_How_to_fix_the_error_504\" >Q. How to fix the error 504?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/rarathemes.com\/blog\/fix-504-gateway-timeout-wordpress\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_a_504_Gateway_Timeout_Error\"><\/span>What is a 504 Gateway Timeout Error?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"451\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/505-Gateway-timeout-error-1.png\" alt=\"505 Gateway timeout error\" class=\"wp-image-29554\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/505-Gateway-timeout-error-1.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/505-Gateway-timeout-error-1-300x185.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/505-Gateway-timeout-error-1-97x60.png 97w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Every time you try to visit any website, your browser sends a request to the server hosting that particular site. Then, the server responds to the request and provides the requested resources. When there is a delay in that response, you get the 504 gateway timeout error on your browser.&nbsp;<\/p>\n\n\n\n<p>The 504 gateway timeout error means your web server acting as a gateway did not receive a timely response from an upstream server. Thus, your web server is unable to load the web page you are trying to reach.&nbsp;<\/p>\n\n\n\n<p>In other words, your web server and the upstream server are not communicating fast enough.<\/p>\n\n\n\n<p>Like error 503, the 504 error is also a generic error message. Such a nature makes it difficult to pinpoint the cause for the error. You know what is wrong with the website, but you don\u2019t know why it happened.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_May_You_Receive_the_504_Gateway_Timeout_Error\"><\/span>How May You Receive the 504 Gateway Timeout Error?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are various operating systems, web browsers, servers, and users. Also, individual sites can customize how they get the 504 timeout error. That is why you may see the 504 error in many forms. Here are some common forms you may run into:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>504 Gateway Timeout<\/li><li>HTTP 504<\/li><li>504 ERROR<\/li><li>Gateway Timeout (504)<\/li><li>HTTP Error 504 &#8211; Gateway Timeout<\/li><li>Gateway Timeout Error<\/li><li>504 Gateway Timeout NGINX<\/li><li>NGINX 504 Gateway Timeout<\/li><li>Gateway Timeout Error<\/li><li>Error 504<\/li><li>HTTP Error 504<\/li><li>HTTP 504<\/li><li>This page isn\u2019t working \u2014 Domain took too long to respond<\/li><li>504 Gateway Timeout \u2014 The server didn\u2019t respond in time<\/li><li>A blank white screen<\/li><li>WU_E_PT_HTTP_STATUS_GATEWAY_TIMEOUT<\/li><li>HTTP_STATUS_GATEWAY_TIMEOUT&nbsp;<\/li><\/ul>\n\n\n\n<p>Though the wording in the above responses is different, they all indicate the 504 error.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Causes_of_504_Gateway_Timeout_Error\"><\/span>Causes of 504 Gateway Timeout Error<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Like already said above, the 504 error is due to a connection failure between your server and the upstream server. The connection error may be due to several reasons. But whatever the reason, the server is down and is not working at the moment.&nbsp;<\/p>\n\n\n\n<p>Being a network error, finding the actual cause for the 504 error is quite tricky. Your device, browser, and internet connection may be running well, and you may still face the 504 error.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fixing_the_504_Gateway_Timeout_Error\"><\/span>Fixing the 504 Gateway Timeout Error<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some tricks that may resolve the 504 error:&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Check_Your_Internet_Connection\"><\/span>1. Check Your Internet Connection.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The main reason for the 504 error is a delay or lack of connection between your server and the hosting server. Chances are, your internet connection may be down. Due to this, your browser might be showing the error. So, check your internet connection and assure that it is running well.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Double-Check_the_Website_URL\"><\/span>2. Double-Check the Website URL.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The 504 error also might be because you mistyped the URL of the site you are trying to visit. So, rechecking and re-typing the URL. Also, refresh the webpage a couple of times.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Restart_Your_Router_and_Modem\"><\/span>3. Restart Your Router and Modem.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The 504 gateway error is due to some issue with your server connection. But it is also possible that there is an issue with your router\u2019s DNS server configuration and is causing that error. Restart your router and modem, then revisit the website.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Clear_Your_Browser_Cache_and_Cookies\"><\/span>4. Clear Your Browser Cache and Cookies.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Your browser keeps a record of the websites you visit in its cache and cookies. The idea here is to decrease the website\u2019s loading time. However, old caches and cookies may sometimes interfere with the loading of that particular website. In such cases, you may encounter the 504 error. Clear your browser cache and reload the website. You can check out the article on <a href=\"https:\/\/rarathemes.com\/blog\/clear-browser-cache\/\" class=\"rank-math-link\">How to clear browser cache <\/a>for the details.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Check_for_Your_Servers_Scheduled_Maintenance\"><\/span>5. Check for Your Server\u2019s Scheduled Maintenance.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Your server might be undergoing maintenance. Receiving the 504 error in such a case is standard. If you have access to your server settings, check for any scheduled maintenance. You can disable the automatic update for the settings as well.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Check_the_Firewall_Configuration\"><\/span>6. Check the Firewall Configuration.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Your firewall protects your site from malicious user attacks and DDoS(Distributed Denial-of-service) attacks. If there is a faulty configuration of your firewall, it views requests from CDN (Content Delivery Network) as an attack on the server. It then blocks any request and displays the error.&nbsp;<\/p>\n\n\n\n<p>You can inspect your firewall configuration and confirm the settings are correct.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_Examine_Your_Server-Side_Logs\"><\/span>7. Examine Your Server-Side Logs.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Your server-side logs give you details about the server\u2019s hardware, its status, and health. Thoroughly inspect these server-side logs for any critical information.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_Check_Your_Websites_Code_for_Bugs\"><\/span>8. Check Your Website\u2019s Code for Bugs.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If your website has a bug in its code, it will not respond to the connection request from the CDN. Scan through your website\u2019s code and look for any bugs. You can take help from the developer.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9_Proxy_Servers\"><\/span>9. Proxy Servers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Server issues are a common cause for the 504 gateway error. Most of the hosting providers host the WordPress websites on Apache or Nginx servers. Those servers are waiting for response but are timing out.&nbsp;<\/p>\n\n\n\n<p>Ecommerce websites and websites receiving high-traffic are more prone to this error. In such websites, the servers hosting them often overload due to multiple uncacheable requests. If you are one of those sites, the best thing you can do is upgrade to a high-tier hosting plan.&nbsp;<\/p>\n\n\n\n<p>Check out our review on some of the <a href=\"https:\/\/rarathemes.com\/blog\/best-wordpress-hosting\/\">best hosting providers.&nbsp;<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"10_Check_Your_Sites_Theme_and_Plugins\"><\/span>10. Check Your Site\u2019s Theme and Plugins.&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In some cases, your <a href=\"https:\/\/rarathemes.com\/wordpress-themes\/\">WordPress theme<\/a> or plugin may be causing the 504 gateway timeout error. Although, it is quite rare that a third-party app is causing such a problem. However, it does not hurt to take a look at your plugins and theme.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to your <a href=\"https:\/\/rarathemes.com\/blog\/getting-started-wordpress-admin-dashboard\/\">WordPress dashboard<\/a>.&nbsp;<\/li><li>Scroll down the \u2018Plugins\u2019 section at the left sidebar.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"415\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/plugin-section-on-the-dashboard.png\" alt=\"plugin section on the dashboard\" class=\"wp-image-29549\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/plugin-section-on-the-dashboard.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/plugin-section-on-the-dashboard-300x171.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/plugin-section-on-the-dashboard-106x60.png 106w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the \u2018Deactivate\u2019 option in the bulk action menu and click on the \u2018Apply\u2019 button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"417\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/deactivate-all-the-plugins.png\" alt=\"deactivate all the plugins\" class=\"wp-image-29550\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/deactivate-all-the-plugins.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/deactivate-all-the-plugins-300x171.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/deactivate-all-the-plugins-105x60.png 105w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>Now, see if your site works properly. If it does then activate the plugin one by one. Don\u2019t forget to check the site after activating each plugin. Also, make sure that your plugins and theme are up to date.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"11_Come_back_later\"><\/span>11. Come back later.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If the page is still showing a 504 error after trying all the methods, it is time to take a break. Rest assured that your device, internet, and website, and everything is working fine.&nbsp;<\/p>\n\n\n\n<p>It is a problem with either your ISP or the server administrator. Contact and let them know of the issue. By this time, they are probably already working to fix it. But you might as well inform them, just in case.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQs_Frequently_Asked_Questions\"><\/span>FAQs (Frequently Asked Questions)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1613026273693\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q_Does_504_error_impact_the_SEO\"><\/span>Q. Does 504 error impact the SEO?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes, if your site is showing a 504 error, your visitors cannot view your content. This results in an increased bounce rate and even damages the brand reputation if you don\u2019t fix it soon. Search engines also demote your site\u2019s ranking.\u00a0<\/p>\n<p>However, these cases are exceptions as the 504 error is usually temporary.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1613026297006\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q_How_to_fix_the_error_504\"><\/span>Q. How to fix the error 504?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The 504 error is mainly because of some issue with the server connection. Pinpointing the cause is quite troublesome. However, you can try the following steps:\u00a0<\/p>\n<p>\u2022 Refresh the website.<br \/>\u2022 Recheck the URL you are trying to visit.<br \/>\u2022 Restart your router.<br \/>\u2022 Clear the browser cache.<br \/>\u2022 Check the firewall and DNS settings.<br \/>\u2022 Check the server-side logs.<br \/>\u2022 Scan the website\u2019s code for bugs.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Tracing the cause of the 504 gateway timeout error is quite tricky. There are many reasons why your browser is showing that error. However, the main reason is due to some fault in the server connection. Try the steps we have mentioned above and see if anything works. If not, wait it out. The 504 error is usually temporary, so have patience.<\/p>\n\n\n\n<p>Sometime you might also face HTTP error 503. So, We recommend you to read <a href=\"https:\/\/rarathemes.com\/blog\/fix-http-503-error-wordpress\/\" class=\"rank-math-link\">What is HTTP error 503 and how to fix it<\/a>. If you find these articles helpful then please let us know in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Isn\u2019t it annoying when you get the 504 gateway timeout error from the webpage you are trying to visit?&nbsp; It is even more frustrating for site owners. They lose valuable &hellip; <\/p>\n","protected":false},"author":15,"featured_media":29552,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_be_single_description":"","_be_image_uploader":0,"_be_meta_button_label":"","_be_meta_button_url":"","_be_meta_button_newtab":false,"_be_meta_rel_attribute":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-29547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","latest_post"],"_links":{"self":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/29547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/comments?post=29547"}],"version-history":[{"count":0,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/29547\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media\/29552"}],"wp:attachment":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media?parent=29547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/categories?post=29547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/tags?post=29547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}