Forums

Page/Post Preview Not Working (20 posts)

  1. nontechblogger
    Member
    Posted 2 years ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress?

    - increasing your available memory?

  3. nontechblogger
    Member
    Posted 2 years ago #

    Thanks esmi, I haven't tried deactivating all plugins, I was afraid I was going to get that answer.

    The phpMyAdmin link you gave me is instructions to deactivate ALL plugins it seems. How do I reactivate after that?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Make a note of the option_name value before you edit it. Then you can change it back again afterwards.

  5. nontechblogger
    Member
    Posted 2 years ago #

    I reset the plugins through myPHPadmin, but I still have the same problem. This is the same thing as deactivating all plugins, right? So none of my plugins are the problem?

    I've tried switching theme but didn't work either.

    As far as re-uploading WP - that would wipe out my theme and plugin files.. how do I restore them?

    And finally the memory - that's not the error I'm getting. How could it be related?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    I didn't suggest a complete re-upload. I suggested re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    And insufficient available memory can cause many different symptoms.

  7. nontechblogger
    Member
    Posted 2 years ago #

    Ok now I've tried all of it.. increased the memory to 128M in wp-config.php, and uploaded wp admin and wp includes, still no dice. Any other suggestions?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try resetting your custom permalinks back to the default setting.

  9. nontechblogger
    Member
    Posted 2 years ago #

    Still no :(

    Seems like when I try preview on already published posts, it goes to http 500 internal server error, and ones in draft stage go to my domain, but with a "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." message on it.

    I thought maybe it had something to do with the Super Cache so I've already manually installed it but still didn't fix it.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    If you have an .htaccess file in your WP folder, try renaming it.

  11. nontechblogger
    Member
    Posted 2 years ago #

    What I meant to say is I've already manually uninstalled Super Cache.

    What do I rename htaccess to? or does it not matter? and this would be the one in the main WP directory?

  12. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    When you uninstalled the cache plugin, did you make sure that you removed any cached files or folders?

    It doesn't really matter what you rename .htaccess to. It needs to be the .htaccess file associated with WordPress. If you're running WP in a sub-folder, look in that sub-folder. If you're running WP in root (even if it's installed in a sub-folder), you need to look in the domain root folder.

  13. nontechblogger
    Member
    Posted 2 years ago #

    Yes I followed the manual uninstall instructions on the plugin. I removed the cache files, deleted the rewrite rules in htaccess..

    the reason I asked is because I have several htaccess files in different folders.

  14. nontechblogger
    Member
    Posted 2 years ago #

    I renamed the main .htaccess to .htaccess2 but still no.

  15. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    When you get the "you are looking for isn't here!" message, what does the url look like?

    Have you tried contacting your hosts in case something has changed on the server? mod_security changes are notorious for fouling up WP.

  16. nontechblogger
    Member
    Posted 2 years ago #

    The url I get is http://divabenefits.com/?p=1893&preview=true

    The tech support on my host isn't very smart, but I can ask.

  17. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  18. nontechblogger
    Member
    Posted 2 years ago #

    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?

  19. nontechblogger
    Member
    Posted 2 years ago #

    Any help?

  20. acenik10
    Member
    Posted 1 year ago #

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

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

    this becomes

    http://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:
    http://example.wordpress.com/
    instead of
    http://example.wordpress.com/wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic