

When the error disappears, you’ll know the most recently deactivated plugin was the one causing it. If you have access to the back end of your site, simply deactivate your plugins one by one, and check the page experiencing the 502 Bad Gateway response between each. Caching plugins are a popular culprit, but it’s wise to do a little detective work to make sure you weed out the root of the problem.
#WORDPRESS NGINX GATEWAY TIMEOUT CODE#
Sometimes bad code from a plugin can cause your server to cancel a request. If corrupted cached files or cookies were causing the issue, it should now be gone.

Make sure the checkboxes next to Cookies and other site data and Cached images and files are checked, then click on the Clear data button:Ĭlose your settings and refresh the page returning the 502 Bad Gateway Error. The first option should be Clear Browsing Data, which you’ll want to click: In Google Chrome, access your settings by clicking on the three-dot icon in the top right corner of the window: This process will vary slightly depending on which browser you prefer. In the event it does, the next simplest fix is to clear your browsing data. Your first order of business should be to refresh your page to see if the problem persists. Refresh the page and clear your browsing dataĪs we mentioned earlier, 502 responses are sometimes temporary. Here are three ways you may be able to fix it yourself.
#WORDPRESS NGINX GATEWAY TIMEOUT HOW TO#
How to fix the 502 Bad Gateway Error in WordPress (3 simple methods)īefore contacting your hosting provider for help, it’s best to try at least a few methods for resolving the 502 Bad Gateway response on your own. Others, such as overloaded servers, may be out of your hands. Some of these problems are temporary issues that may resolve on their own or with some simple intervention.

The 502 response is its way of telling you that it received an invalid response from another server it was attempting to communicate with. In some instances, your website’s server may act as a gateway. Essentially, this term refers to a device that enables networks to communicate with one another. Let’s get started! An introduction to the 502 Bad Gateway Errorīefore we dive into the particulars of a 502 error, it’s helpful to know what a ‘gateway’ is. Then, we’ll detail three solutions to fix the problem and get users enjoying your content again. In this article, we’ll go over what a 502 Bad Gateway Error is, and what could be causing it. Of course, it may take a little troubleshooting to determine the cause.

Thankfully, knowing what the 502 Bad Gateway Error means – and how to fix it – can get your WordPress site back up and running smoothly. Even worse, if your website is down for hours at a time, you may begin to slip lower in search engine rankings. When they pop up, they have the potential to annoy guests. No one wants to see a 502 Bad Gateway Error appear on their WordPress website.
