# 502 Gateway error on one site

**URL:** <https://community.localwp.com/t/502-gateway-error-on-one-site/43996>\
**Category:** Support\
**Created:** [August 1, 2024, 6:31pm UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996 "2024-08-01T18:31:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebaldoni](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ebaldoni/32/22367_2.png) [@ebaldoni](https://community.localwp.com/u/ebaldoni)\
**Post date:** [August 1, 2024, 6:31pm UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996/1 "2024-08-01T18:31:50Z")

</div>

### What issue or error are you experiencing?

One of my sites showing 502 gateway error

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Start the site…try to view. See unpleasant 502

Yesterday I created a new site and moved my theme into it and that worked for like a day and this morning 502 again. Pretty frustrating, other sites seem to work. Included a screenshot of the settings for the site. Others all match it.

* * *

### System Details

- **Local Version:**  
Version 9.0.5+6706

- **Operating System (OS) and OS version:**  
Mac 14.5 (23F79)

* * *

### Local Logs

[local-logs.zip](https://community.localwp.com/uploads/short-url/vVer2N1MycjBiZjU5df4wJP4dsM.zip) (1.4 MB)

 ![Screenshot 2024-08-01 at 11.29.32 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/8/7/8717b48a08c62ef95dc1afce5439cde7270fbac3.jpeg)

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [August 2, 2024, 3:20pm UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996/2 "2024-08-02T15:20:56Z")

</div>

Hi @ebaldoni

If you use Open Shell and try deactivating plugins or swapping the theme does that make the 502 go away? Since it seems to be site specific there might be some type of conflict within it’s configuration.

First you could run something like `wp plugin deactivate --all` to see if that works.

---

<div class="post-metadata">

**Author:** ![ebaldoni](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ebaldoni/32/22367_2.png) [@ebaldoni](https://community.localwp.com/u/ebaldoni)\
**Post date:** [August 2, 2024, 5:54pm UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996/3 "2024-08-02T17:54:21Z")

</div>

> [@Nick-B](#):
>
> wp plugin deactivate --all

Hi Nick,

Ok, yes I was finally able to narrow it down to Wordfence being the culprit. Thanks!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [August 2, 2024, 5:56pm UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996/4 "2024-08-02T17:56:14Z")

</div>

Awesome! Thank you for the update @ebaldoni 💚

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 4, 2024, 5:56am UTC](https://community.localwp.com/t/502-gateway-error-on-one-site/43996/5 "2024-08-04T05:56:19Z")

</div>

Closed on August 4, 2024, 5:56am UTC

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
