• Hey everyone.

    The ‘Preview’ button under ‘Edit Post’ / ‘Add New’ is taking me to a 404 / page not found.

    What’s interesting is if I click Posts -> Edit, and then mouseover the same post in list view, and click Preview there, it works fine.

    The difference is in the URL.

    Edit Single Post view (wp-admin/post.php) -> Preview sends me to:
    https://mysite.com/forum/preview-test.html?preview=true (404)

    Whereas Edit Posts list view (wp-admin/edit.php) -> Preview sends me to:
    https://mysite.com/?p=2229 (works as normal)

    I do have pretty permalinks turned on and the top-level-cats plugin. I’m also using xcache on the server (in php, not as a wordpress plugin) to speed things up.

    I have tried disabling all plugins, to no avail.

    Any insight? Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ejk

    (@ejk)

    A little more detail:

    If the post is published, then unpublished, the preview button starts working.

    Thread Starter ejk

    (@ejk)

    I disabled xcache, and that solved the problem.

    However, I’d like to keep xcache enabled for the speed benefit.

    Anyone have experience with xcache settings I can change that might get me around it?

    The problem is it doesn’t see the pretty permalink path to unpublished posts, which results in a 404.

    I’m gonna try the XCache plugin for wordpress and see if that helps.

    Are you previewing with a different browser than the browser you logged into the Admin section with? I have noticed this…Also make sure that the session has not timed out.

    Thread Starter ejk

    (@ejk)

    Thanks for the suggestion. That’s a good point, but I am previewing in the same browser.

    Based on which preview button I click (either under edit post or quick edit), one works and one doesn’t.

    It seems like one URL is sending to the permalink version (edit post) and one is sending to the non-permalink version (quick edit). Only the quick edit / non-permalink version works.

    When I turn off xcache, the problem disappears, but I’d like to find a way to have both. When xcache is turned off, both links go to the non-permalink version of the URL.

    Still stumped.

    Oh okay. Gotcha. No idea. Gotta find someone better at this than me on this one. Best of luck.

    Thread Starter ejk

    (@ejk)

    I believe this bug was fixed in the WordPress 2.7.1 update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Preview button gives 404 / page not found’ is closed to new replies.