WordPress Post Preview Not Working – 404 Not Found

A few times recently, I’ve been writing a post, only to find that when I click on the Preview button within the WordPress dashboard, instead of previewing the post, I get a 404 page not found error. This is annoying as it means you have to publish the post just to view it, and you don’t want to do that. The problem seems to be caused by WordPress thinking you are not logged in, when you are.

I’m Using Google Chrome

I am using Google Chrome. I figured that the problem would go away if I used another browser, but I like Chrome so didn’t want to do that. However that is an option for you if you’re not wedded to Chrome as I am.

Here’s a short video showing you what I did. I hope it works for you.

I fixed my problem by doing the following :

  1. Logging out of my WordPress site or sites if you have more than one logged in
  2. Closing all my Google Chrome browser windows – even the minimised ones
  3. Open up a new Google Chrome browser window and make sure it only has only tab open
  4. Click the spanner at the top right of your Google Chrome browser window.
  5. Click on Options which opens up a new page
  6. Click on Under The Hood (on the left hand side of the window)
  7. Check everything except passwords and auto-fill form data
  8. Click on Clear Browsing Data and do it from the Beginning Of Time
  9. Close Google Chrome, and start it up again

About 

Liz Jamieson is a WordPress coach and web designer specializing the use of Genesis child themes. Her coaching website can be found at the Genesis Club

Comments

  1. says

    Hi!!

    I have a similar problem but only when there are images in the post, or embedded youtube videos. and when I try to save the draft, appears the same 404 message, it happens with Chrome, FireFox and IE.

    A friend of mine who is administrator in the blog too, tried to do the same from a different PC, and the same thing happens. I have a second wordpress blog in the server, which is completely independient from the other, and in that blog occurs the same problem. In this moment I don’t know if there is a problem in the server or if there is some kind of “bug” in wordpress in general. Anyone knows something about it?

    Thanks

    • says

      If it happens with all browsers it sounds like it is an environmental problem on your server. I don’t think there is a general bug as not enough people are experiencing this problem. My problem was only happening with one browser – Chrome.

  2. Michael says

    Hi Elizabeth,
    I found that I had this problem this morning … did not have it yesterday …. but anyway … I followed your notes to the letter and sadly it did not make any difference .. I still have a 404 … back to google !!! ..thanks for sharing

    • says

      Hi Michael. This was happening to me all the time when I wrote that post. But since upgrading to later versions of WordPress it no longer happens.

      I checked your site and see that you are running an old version of WordPress. I could tell because you haven’t taken steps to remove the version number from your code. That is OK, but I thought I’d mention it. It is considered good practice to remove the version tag if you are not upgrading for some reason. Here is a tutorial on it :http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/

      You could try upgrading, as this may well fix the preview problem.
      Liz

  3. Michael says

    Thanks ha ha you were probably checking it whilst I was de -activating all the plugins .. to find the black sheep … it is currently running 3.2.1 the most up to date version …the version number I think gets “removed” via a select box in a security plugin … .. maybe a function would be a more permanent solution ..thanks for the link

    • says

      Well done for finding the problem … it may be this has been the culprit all along. I had that plugin installed for a short while and didn’t use it in the end. I wonder if that was always the issue?

Leave a Reply

Your email address will not be published. Required fields are marked *