# 502 Error only on admin

**URL:** <https://community.localwp.com/t/502-error-only-on-admin/52564>\
**Category:** Support\
**Created:** [September 17, 2026, 8:57am UTC](https://community.localwp.com/t/502-error-only-on-admin/52564 "2026-09-17T08:57:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.cosmo](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@alex.cosmo](https://community.localwp.com/u/alex.cosmo)\
**Post date:** [September 17, 2026, 8:57am UTC](https://community.localwp.com/t/502-error-only-on-admin/52564/1 "2026-09-17T08:57:46Z")

</div>

### What issue or error are you experiencing?

I have been working on my site locally until this morning and now when I visit the wp-admin pages I get a **502 Bad Gateway** error. The front-end of the site still works, but the admin pages are throwing this error now.

* * *

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

Launch the site, and try to go to the admin via any means (button from local or just entering URL /wp-admin/)

* * *

### System Details

- **Local Version:** Version 10.1.2+7004

- **Operating System (OS) and OS version:** Mac OS Golden Gate 27.0 (26A428)

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

[local-logs.zip](https://community.localwp.com/uploads/short-url/ys5uiVAvpEJfw424lBiU43Rznoe.zip) (20.1 KB)

* * *

_ **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:** ![alex.cosmo](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@alex.cosmo](https://community.localwp.com/u/alex.cosmo)\
**Post date:** [September 17, 2026, 9:29am UTC](https://community.localwp.com/t/502-error-only-on-admin/52564/2 "2026-09-17T09:29:31Z")

</div>

Ok for those looking for a solution to this…

**Make sure your PHP version is up to date.**

My PHP was 8.2.9 - I upgraded it to 8.5.3 (the latest at time of posting) and that seemed to fix the issue.

Not sure why it was working until today but that was my solution anyway.

---

<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:** [September 17, 2026, 2:49pm UTC](https://community.localwp.com/t/502-error-only-on-admin/52564/3 "2026-09-17T14:49:37Z")

</div>

Thank you for sharing an update here @alex.cosmo. Glad to know things are working now 💚

---

<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:** [September 17, 2026, 2:49pm UTC](https://community.localwp.com/t/502-error-only-on-admin/52564/4 "2026-09-17T14:49:40Z")

</div>

Closed on September 17, 2026, 2:49pm UTC


