WordPress.org

Ready to get started?Download WordPress

Forums

Constantly getting error 500 (4 posts)

  1. Sviddgummi
    Member
    Posted 1 year ago #

    Pretty much daily our site shuts down and gets this error:

    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, [ email redacted ] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Now, if I delete the htaccess file, the site works again. But about one day later the error is back and i have to delete the file again.

    This is how the htaccess file looks when the error is there:

    ## 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

    And this is how it looks when it works.

    # 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

    I cant find out of this problem, and its very irritating.

    Anyone that can help please?

  2. And this is how it looks when it works.

    The first code has << in it and that will generate a 500 server error every time.

    But about one day later the error is back and i have to delete the file again.

    That file should only be touched when you want to and should not be modified automatically. What's the link to your site?

    For troubleshooting 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 Twenty Eleven 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.

  3. Sviddgummi
    Member
    Posted 1 year ago #

    Hey!

    The link is http://www.sviddgummi.no (Norwegian site)

    No I have not tried deactivating the plugins because we have so much traffic daily.

    The error has come 5 times since this thread.

  4. Only 5 times? That's not too bad for a busy site. ;)

    I'm kidding of course.

    According to Sucuri SiteCheck your site in clean so it's probably not a hack.

    Here's the thing: some condition exists on your installation that is causing your .htaccess file to get updated incorrectly but only occasionally.

    You can try and make that file read-only (it should not be updated that frequently) but that's just a bandaid and depending on what's doing it then that protection can easily be overwritten.

    The code that ships with just WordPress will not do what you are experiencing so in all likelihood it's something that was added to your installation i.e. a plugin or your theme or something else running on your server.

    The steps outlined above may help you identify the problem. If you can't or are unable to do those steps then perhaps you can line up the change to .htaccess with some event in your webserver's error_log or access_log.

Topic Closed

This topic has been closed to new replies.

About this Topic