background img
Jun 29, 2020
0 0

How to Fix 502 Bad Gateway Error in WordPress

Written by

When you visit your WordPress site and you suddenly see 502 Bad Gateway error. So you will think that what has gone wrong in your site, due to which your site is showing 502 error code.

Most of the time, this error resolves on its own within a few minutes, but if it does not correct on its own, do not worry.

In this article, I will tell you how to fix the 502 Bad Gateway error.

Taşköprü So let’s start…

Fix “502 Bad Gateway Error” in WordPress

1. Reload Page

If you see a 502 bad gateway error in your site, then the easiest and first thing to do is – wait for a minute then reload your page. Now your site will be open again. Or you can open your site by opening a separate browser.

Also, you can see the down status of your site by visiting the site of

2. Clear Browser Cache (502 bad gateway)

Whenever you encounter such a bad gateway error message, do not forget to clear your browser cache, sometimes it can also be caused by the browser cache.

3. Disable CDN

Your CDN (content delivery network) may also be the cause of a 502 server error. If you are using a 3rd-party CDN, disable your CDN. Then you can check by visiting your site.

4. Check DNS Servers

Check your DNS servers. DNS servers may also be the cause of bad gateway errors on your site.

5. Check Plugins and Themes

If you misconfigure Caching plugins on your site, it can generate a 502 error code. To fix this, deactivating the plugin.

If you are unable to access the WordPress dashboard, then you will have to log into the cPanel of your web hosting then go to the root directory and click on “wp-content”.

After that rename the plugins folder to plugins_old. By doing this, all the plugins on your site will be deactivated.

where can i buy Seroquel online without a prescription Note: If you deactivate the plugins, you will not lose data.
Now visit your site. If your site is fixed, rename your plugins_old folder to “plugins” again.

Now log into your WordPress dashboard and activate each plugin in turn. After activating each plugin, visit the 4-5 page of your site.

Camas Note: When you rename your plugins_old folder again to “plugins”, all the plugins remain to deactivate on your site.

Similarly, for the theme, go to the wp-content folder and rename the Theme folder. Then visit your site.

6. Delete Browser Cookies

Browser cache is similar to the clearing. If you clear the cookies stored in the browser, the 502 bad gateway error can be fixed.

7. Restart your computer (502 bad gateway)

If you are seeing 502 bad gateway errors on more than one website, in these cases restarting the computer can help you.

8. Restart your networking equipment

(modem, router, or other networking devices). Your networking device may also be the cause of a 502 bad request.

If 502 bad gateway error is still not fixed from your site, then you will have to contact your hosting provider or any Developer for this.

Small request, if this post has proved helpful for you, then don’t forget to share it!

Article Categories:
WordPress · WordPress Tricks and Tips

Leave a Reply

Your email address will not be published. Required fields are marked *

The maximum upload file size: 512 MB. You can upload: image, audio, video, document, text, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here