# Testing on Local -- 404s, but not when logged in?

**URL:** https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067
**Category:** Support
**Created:** [September 13, 2023, 8:41pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067 "2023-09-13T20:41:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![relish27](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@relish27](https://community.localwp.com/u/relish27)
#### Post date: [September 13, 2023, 8:41pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/1 "2023-09-13T20:41:58Z")

</div>

### What issue or error are you experiencing?

I am testing on Local for the WP Engine mySQL 8.0 upgrade.

Some pages are not rendering and redirect to 404s.

* * *

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

On my own site, I have found that the pages redirecting are custom post type pages.

However, I discovered that if I log into the admin and then view these pages, they work fine.

Could it be a rewrite issue?

I tried re-saving permalinks, just to see if that could help. Then I logged out. Yep, then the page worked.

Is this a known bug?

* * *

### System Details

- **Local Version:**

7.1.2+6410

- **Operating System (OS) and OS version:**

Windows 10

* * *

### 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/bCkxD8b2PHv4CbaO4lsYA3PyIoC.zip) (14.2 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: ![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 15, 2023, 1:58pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/2 "2023-09-15T13:58:13Z")

</div>

Hi @relish27

Not so much a bug as just a common WordPress development issue that users will see from time to time:

[How to Fix WordPress Posts Returning 404 Error (Step by Step)](https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/#:~:text=Simply%20go%20to%20Settings%20%C2%BB%20Permalinks,probably%20need%20to%20update%20your%20).

---

<div class="post-metadata">

### Author: ![relish27](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@relish27](https://community.localwp.com/u/relish27)
#### Post date: [September 15, 2023, 3:31pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/3 "2023-09-15T15:31:57Z")

</div>

Thanks for the input. Yes, that’s why I gave it a try here.

I was downloading several sites from WP Engine for the mySQL upgrade and noticed it happening repeatedly on almost all of them, so I added it to my Local testing workflow. I would not have expected that necessarily when I got started with Local, so I thought I’d post about it in case it helps others.

---

<div class="post-metadata">

### Author: ![relish27](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@relish27](https://community.localwp.com/u/relish27)
#### Post date: [September 15, 2023, 3:33pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/4 "2023-09-15T15:33:15Z")

</div>

10 sites down (mySQL upgrades)… only 40 left to go! 😅

---

<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 15, 2023, 3:53pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/5 "2023-09-15T15:53:27Z")

</div>

Thank you for sharing your findings for others! Hopefully your next 40 sites go smooth and you’re done quick 💚

---

<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: [December 14, 2023, 3:53pm UTC](https://community.localwp.com/t/testing-on-local-404s-but-not-when-logged-in/39067/6 "2023-12-14T15:53:47Z")

</div>

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