Random 404 Page Not Found Errors
-
I have a site that has been in production for years, currently running WP v6.1.1.
Recently (around the last three or four weeks) I’ve been getting reports from users of 404 Page Not Found responses when visiting a page. The site page header shows, but WP just displays the Page Not Found + a search box for the content. I have also experienced this.
At first I thought it had to do with caching (Litespeed). With caching enabled, once the error occurs on a page, the user always gets the error for that page, though other pages work fine. I have to disable the caching plugin in order to clear the 404 response on a page.
But I have disabled caching and still get the random 404 errors, though they are less persistent.
With caching disabled, when I get a 404 on a page load, I can refresh the page and it will return correct content. It seems to be only the first load of the page that gets the 404, and even then it’s random… sometimes it will show a 404 on first load, and other times it will show the content.
Sometimes I can be on a working page, navigate away from it, then navigate back to it. What was just previously a working page now displays the 404 Page Not Found error. On refresh, the page loads fine.
I have resaved permalinks multiple times without any apparent difference. I’ve gone through the process of disabling multiple plugins that I thought might have an effect on the page load, but nothing seems to make a difference.
I can’t reproduce the problem on demand… it’s just a random occurrence.
I’m really stumped on this one and would appreciate some advice and thoughts on how to track down this problem and fix it.
- The topic ‘Random 404 Page Not Found Errors’ is closed to new replies.