WordPress.org

Ready to get started?Download WordPress

Forums

Internal 500 error (8 posts)

  1. bambarbie
    Member
    Posted 1 year ago #

    Hi!

    I blog at http://www.piercedhands.com, which, as you can see, is not so much working right now. I added a few plugins--something for Google analytics, a related posts thing, a new feed stats plugin--and all of a sudden nothing's working. The error for any page on my domain is:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@piercedhands.com 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.
    Apache Server at http://www.piercedhands.com Port 80

    I can't access any of the pages, my admin panel, nothing. So I tried to be sresponsible and even figured out the whole filezilla FTP thing to reset my plugins folder, but it didn't work. Then I went in through filezilla and deleted the three new plugins I'd added. Still nothing.

    Can anyone help me? Please?

  2. shadez
    Member
    Posted 1 year ago #

    well that error could mean anything..
    if your blog is new, try replacing .htaccess file with a fresh one (probably from WP3.5 pack)..

  3. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Can you check your error logs and php logs... there is usually a clue in there.
    Turn wp-debug to true - to print (=to see) the error code on browser.

    As your webhost where is the php log file's error log. We need that file.

    http://codex.wordpress.org/Debugging_in_WordPress

    Quick fix :

    1. Access FTP.
    2. Go to wp-content/plugins
    3. Rename that folder to .plugins (temporarily). (dot makes all plugin folder content not accessible). A bit modified from the WP codex doc.
    4. Rename .htaccess to bak.htacccess for now.
    4. Load in browser your site.

  4. bambarbie
    Member
    Posted 1 year ago #

    I did the .plugins and bak.htaccess (I assumed you didn't mean bak.htacccess) and I get the same error notice.

    Here's what it's got for today in the php error log:

    [07-Jan-2013 05:50:41] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(8) )' at line 12 for query CREATE TABLE wp_simple_feed_stats ( id mediumint(10) unsigned NOT NULL AUTO_INCREMENT, logtime varchar(200) NOT NULL default '', request varchar(200) NOT NULL default '', referer varchar(200) NOT NULL default '', type varchar(200) NOT NULL default '', qstring varchar(200) NOT NULL default '', address varchar(200) NOT NULL default '', tracking varchar(200) NOT NULL default '', agent varchar(200) NOT NULL default '', PRIMARY KEY (id), cur_timestamp TIMESTAMP(8) ) made by include('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, sfs_create_table, dbDelta

    That seems to repeat a lot, unless they're slightly different and I can't tell because I don't speak this language.
    I took C++ in high school--fat lot of good that's doing me. Thank you so much for your help!!

  5. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Apache is running - http://www.piercedhands.com/readme.html

    (Ignore the previous reply via email, possibly the webserver has other issues with running Apache, I got 500 with that url before.)

    What you will do is -

    Download a custom script (scroll down to the lower part to "Downloads") http://thecustomizewindows.com/2012/09/rackspace-cloud-sites-php-ini-details-apache-2-modules-information/ ; upload it to root and run to check the PHP modules. Delete it after test because it is a security risk.

    As you basically have an overall idea, you will understand whether php is running or not or basic needs for WP are running or not.

    If everything is fine, then the definite problem is with WordPress corrupted files. If you have the MySQL backup (or take it via PHPMyAdmin) check it on subdomain or other test installation. Basically as you can understand, whether the MySQL is fine or not that is important.

    If its ok, then freshly install WordPress and restore the mysql backup. Except the wp-content/uploads folder, you need nothing to backup from FTP.

  6. bambarbie
    Member
    Posted 1 year ago #

    Hey, I'm OP's friend and I've been taking a look at the server via FTP to see what's going on.
    What seems to be happening is that something is corrupting the .htaccess file, duplicating entire chunks of the file and placing the extra code at the beginning of the file. I go in and remove the extra code and the site will work for about a day until I encounter the same problem again, with a different chunk. It looks like some module or extension is incorrectly rewriting .htaccess. Is there anything known to cause an error like that?

  7. bambarbie
    Member
    Posted 1 year ago #

    I imagine we'll probably have to reinstall WordPress on the server, but I'm not quite sure how to do that. I'm familiar with PHP and with web development in general, but I'm new to WordPress specifically. How would we go about the reinstall while maintaining the content, themes, layout, etc.?

  8. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Who is looking you are the friend of the original one !
    (I appreciate your honesty).

    If .htaccess goes wrong there will 500 IS error. Probably its the most common cause. Yes, it appears the Apache mod (s) is/are not rightly installed on serverside. (I guess you have ran the script...)

    Look, if modules are not rightly installed, how you can install and run WordPress properly. It was basically running fine. You can create a folder in FTP (something with name test or like that) and install fresh WordPress to test first. If works great, proceed and cleanup. If does not work, leave the web hosting company, if they do not do any fix.

    You will get the basic and advanced guides on Codex : http://codex.wordpress.org/Main_Page

    Look at this post for my previous reply for clean installing wordpress and restoring the backup - http://wordpress.org/support/topic/migration-to-plesk-gone-wrong?replies=2#post-3506688

Topic Closed

This topic has been closed to new replies.

About this Topic