• Resolved Jean-Philippe

    (@teucrium)


    Hello !

    I’m using your plugin since more than one year and everything was working perfectly until recently : on some pages, more precisely, third-level custom post type hierarchical post, I get a 404 error page while the page is showing content perfectly (as you can see on the link I’ve shared with you).

    It’s not about caching (I’ve deactivated wp rocket).

    I’ve deactivated all the plugins (except yours), so I dont think it’s a conflict with another plugin. I suppose the issue occurred since one of the recent release of WordPress.

    It’s tricky because you can’t see this problem until Google warns you about 404 errors pages : and I’ve had to double check on the developper console to be sure the 404 error was true.

    Can you help me to understand what is happening suddenly ?

    (If you want an access on the sandbox version on the website I can give it to you !)

    Thanks for you work and the plugin you crafted,
    John.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having the same issue with the current version of WP. The 404 errors are also showing in Google Search Console – when I disable the plug in the issues resolve.

    Any updates on this would be very much appreciated! Thank you for building this plug in!

    Plugin Author kubiq

    (@kubiq)

    You can try version 6.1, it should be fixed and hopefully it will not bring another problems… this is very tricky area and I tested it as possible, but you never know…

    Thread Starter Jean-Philippe

    (@teucrium)

    Thanks a lot for solving the issue !

    Pages are now sending a 200 status code.

    Would you accept to explain to me the technical reason of this issue ? I’m really curious and I’ve opened a thread on https://wordpress.stackexchange.com/, so I could give the answer for the whole community.

    Plugin Author kubiq

    (@kubiq)

    Well, as I wrote – the whole solution is very tricky…

    I used pre_get_posts hook to convince WordPress that it should load specific content on specific URL, but 404 headers were already sent, so I had to use another hook that fires before sending headers – request hook

    Thread Starter Jean-Philippe

    (@teucrium)

    Okay ! Thanks again for your work and this explanation !

    Have a nice day !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 error on a post displaying content perfectly’ is closed to new replies.