WordPress.org

Ready to get started?Download WordPress

Forums

Previews Not Working & 500 error when posted (5 posts)

  1. japerk
    Member
    Posted 3 years ago #

    I've been trying to create new posts on streamhacker.com, and the preview isn't working, it just shows my homepage (and it's not a redirect). If I try to go to the post slug, I get a 404 error. If I try to publish the post, then go to the slug, I get a 500 error (you can see the same kind of 500 error if you go to http://streamhacker.com/2011/04/14/text-processing-api-survey/ even though the post is on the home page and made it into the rss feed). I cannot find any error log/messages to explain what's going on. I searched the forums, but the only suggestion that seemed to fix other people's problem was that the blog URL and site URL should be the same, but that's already the case for me. This was happening in 3.1.2 and continues to happen in 3.1.3.

  2. Michael Bishop

    Posted 3 years ago #

    I've found that generally is related to permalinks.

    Have you recently edited your .htaccess file?

    Sometimes, just re-saving the permalinks will do the trick. Not sure if that's something you've already tried or not.

  3. japerk
    Member
    Posted 3 years ago #

    Re-saving the permalinks didn't fix the problem, but it did have an effect. Now the post slugs for drafts are 500 errors instead of 404.

  4. Michael Bishop

    Posted 3 years ago #

    so back to the question, have you modified your .htaccess file recently? I've found that 500 internal server errors with WordPress almost always go back to that.

  5. japerk
    Member
    Posted 3 years ago #

    I installed some security plugins that did modify the main .htaccess. I just emptied and re-saved permalinks, and I'm still getting 500 errors. All the .htaccess has now is this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags