• Resolved Jonathon N

    (@imagiscapeca)


    Pages are visible in preview mode, with the #s, e.g. https://letlaughrule.com/?page_id=408, but when I publish them, pages become “404 not found”. (That happens whether using the post # or the page name, e.g. letlaughrule/test-5.)
    (I know in this context the “404” error # has nothing to do with “408” page id #.)
    If I publish it, then revert to draft (“switch to draft”), it becomes visible again.
    It never disappears from my admin list of pages.

    I purged all from my cache.

    Redirecting changed page urls was part of the problem, but I removed the problematic redirects. There are now no redirects.

    I thought this started happening after I told JetPack to speed up loading of pages by using it’s network. When the errors started, I turned off the “image accelerator”. That didn’t work. I deactivated JetPack. The problem remained.

    I deactivated my other recently added plugin – “Widgets on Pages” – even though I wasn’t using that plugin on the page I was trying to publish. That made no difference.

    Posts / New posts don’t have this problem.

    Old pages have the problem too, except the Front Page.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    A WP 404 is not a true 404. Some call it a “soft 404”. What WP is really saying is there were no matches for the query that it ran. The data could be there, but the query that was used is wrong. Use the query monitor plugin to see the actual SQL used for the requested page. There will be something in the query causing the page to not be matched. Some nonsensical WHERE requirement perhaps. The nature of the problem requirement will be a strong clue towards the root cause.

    Thread Starter Jonathon N

    (@imagiscapeca)

    Somehow it fixed itself. I had cleared caches etc, so I don’t think it was just a matter of time elapsing. Anyway, all good. I did run the Query Monitor plugin. I didn’t look at the results closely, but nothing jumped out at me. I was going to look at the results more closely, but the next day when I returned to the problem, it had “fixed itself”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pages visible in preview, but publishing makes them 404 Not Found.’ is closed to new replies.