502 Gateway error on one site

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 (1.4 MB)


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.

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.

Hi Nick,

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

1 Like

Awesome! Thank you for the update @ebaldoni :green_heart:

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