• The preview for posts or pages is no longer working for me. This is for both new posts and pages, and existing ones. Once I publish them, I can see them on my live site but the preview from my WordPress admin panel goes to either http 500 error, or a page on my site with a message “That ‘something’ you are looking for isn’t here! We’re very sorry, but the page that you are looking for doesn’t exist or has been moved.”

    I tried deactivating some of the plugins but it didn’t solve the problem. I haven’t tried deactivating all of them.. is this the only way to find out where the problem is?

Viewing 4 replies - 16 through 19 (of 19 total)
  • The preview url looks fine and I think we’ve pretty much exhausted the options with WordPress itself – which leaves the server or the database. A db that doesn’t allow you to preview posts but displays them on the public site without any problems seems unlikely but it might be worth repairing the database just in case.

    Thread Starter nontechblogger

    (@nontechblogger)

    Here’s what my host told me:

    there are no changes made on the server where your website is hosted.

    You can create your own php.ini file which you can include in your main public_html folder or any folders within your public_html. You can specify any necessary settings which you need to alter within this php.ini file

    Does creating my own php.ini help me, and what do I do with it?

    Thread Starter nontechblogger

    (@nontechblogger)

    Any help?

    guys i read up on a post all you gotta do is add a index.php in the link

    https://example.wordpress.com/?p=1234

    this becomes

    https://example.wordpress.com/index.php?p=1234

    then the preview works

    now i had to edit one line in a WordPress File for this if you want to have the above change done automatically edit the file below im using WordPress 3.0.1

    /wordpress/wp-includes/link-template.php
    (wordpress is the install directory) (incase your using the root then just locate the wp-includes folder)

    line number 161
    it reads as:

    $permalink = home_url('?p=' . $post->ID);
    copy this there:

    $permalink = home_url('index.php?p=' . $post->ID);

    & save the file back, ul be good to go with the draft’s preview links working again, if someone could point to a better way to fix this, or file a bug for this, or workaround so i do not have to modify the wordpress file please let me know thank you.

    P.S: this bug/symptom applies to people who have their wordpress install in a directory & are having a different address for their site
    eg:
    https://example.wordpress.com/
    instead of
    https://example.wordpress.com/wordpress/

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Page/Post Preview Not Working’ is closed to new replies.