Jerrick Leger is a CompTIA-certified IT Specialist with more than 10 years' experience in technical support and IT fields. This greatly reduces the chance of seeing a 502 bad gateway error. If you want you can follow me at www.christianabata.com Quieres contenido en español? Simply log in to your site via SFTP and rename the plugin’s folder to cdn-enabler_old. You can also use your own custom New Relic key. Restart your networking equipment. He writes troubleshooting content and is the General Manager of Lifewire. The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from another server. Please tell me how I can resolve this issue. Here at Kinsta we utilize New Relic and can help pinpoint for clients where the issue is. The Internet Engineering Task Force (IETF) defines the 502 Bad Gateway error as: The 502 (Bad Gateway) status code indicates that the server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request. If you see the following screen, this is a problem with your host. PHP timeouts occur if a single PHP process runs for longer than the max_execution_time or max_input_time set in the PHP configuration on your server. Speed is everything. A Bad Gateway error received in Windows Update generates a 0x80244021 error code or the message WU_E_PT_HTTP_STATUS_BAD_GATEWAY. In fact, some prefer to use Google’s public DNS long-term. By default, DNS servers are automatically assigned by your ISP. When this happens a 502 server error is usually displayed. If you do a Twitter search for “bad gateway” you can see thousands of tweets happening every day alerting their hosting company of the problem. If the 502 error no longer appears when running your browser in Safe Mode, you know that some browser extension or setting is the cause of the problem. Don’t just manage your website errors—reduce the risk of them ever happening at all. And lastly, you could temporarily change your DNS servers. If you can’t access your admin you can FTP into your server and rename your plugins folder to something like plugins_old. If you are using a 3rd-party CDN provider an easy way to troubleshoot this is to simply disable your CDN temporarily. The best way to do this is to search for #websitedown on Twitter, as in #cnndown or #instagramdown. There is a problem with the … If you’re a Kinsta client, you can easily restart PHP from the tools menu within the MyKinsta dashboard. Third-party plugins and themes with bad code or unoptimized queries are also things to watch out for. A 502 gateway error could also be because of a DNS issue, such as the domain is not resolving to the correct IP, or the DNS server is not responding. However, before you go blaming Cloudflare, it is important to know that there are two different types of 502 bad gateway errors variations with Cloudflare as seen below: If you see the following screen, this is actually a problem on Cloudflare’s end, in which case you should reach out to them for support. If it turns out to be an efficient query or bad code in a plugin, you might need to bring in a WordPress developer to fix the issue. That’s an error. Below are instructions on how to do it in the various browsers: Join 20,000+ others who get our weekly newsletter with insider WordPress tips! We have noticed that this happens once in a while on the Cloudflare free plan. Some of the solutions below can help. I’ll wait 24hours to see if it resolves. It’s basically the servers way of notifying you that something has gone wrong, along with the code on how to diagnose it. If you run into a PHP timeout these values may need to be elevated. Hey Marco! There are many different types of 500 status error codes (500, 501, 502, 503, 504, 520, etc.) 502 Bad Gateway errors are completely independent of your particular setup, meaning that you could see one in any browser, on any operating system, and on any device. Outdated or corrupted files that are being stored by your browser could be causing 502 Bad Gateway issues. However removing my site from cloudflare hasn’t fixed the problem. Did I answer your question? A few ways you can troubleshoot this is by deactivating all your plugins. Here is another example with of an HTTP 502 error and GoDaddy’s firewall. The 502 Bad Gateway error is often a network error between servers on the internet, meaning the problem wouldn't be with your computer or internet connection.