500 error when publishing post in Wordpress?

Discussion in 'WordPress' started by geester1, Aug 18, 2009.

  1. #1
    I have made no changes to the blog since I installed it 4 months ago, been working fine until yesterday, now I can log in and type the posts out, then when I click publish or schedule, I get the 500 error with 400 error!

    I have contacted my hosting company with no response...any advice what to do? Or how to resolve this.

    PS I have checked the permissions and they are correct at 755. The .htaccess is also fine, it is below.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /news/
    RewriteRule ^(sitemap\.xml|sitemap\.xml\.gz)$ /news/wp-content/sitemaps/$1 [L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /news/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /news/index.php [L]
    </IfModule>

    # END WordPress

    Any help is appreciated!
     
    geester1, Aug 18, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    500 error with 400 error? Either it's one or it's the other, not both.

    You will have to check the php error log for more info. If you do not have access, you can edit a wordpress file (config.php or whatever) and add this:

    
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    
    PHP:
    Then reload the page and it should show the error if it is php related. If it's apache related, it won't and you'll need to see the apache error logs.
     
    premiumscripts, Aug 18, 2009 IP
  3. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Also check with the webserver's error logs. Your webhosting interface should provide a link to it. The 500 error will usually drop an error in there.
     
    theapparatus, Aug 18, 2009 IP
  4. Sanjeevmishra9

    Sanjeevmishra9 Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Might be some issue with your .htaccess or config.php, Upgrade your Wordpress version to the latest one and update the forum if something happens.
     
    Sanjeevmishra9, Aug 18, 2009 IP
  5. geester1

    geester1 Well-Known Member

    Messages:
    2,250
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    105
    #5
    The error is below:

    [Wed Aug 19 10:16:52 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 10:16:17 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 10:15:17 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:56:48 2009] [error] [client 81.140.4.196] File does not exist: /home/XXXXXX/public_html/404.shtml
    [Wed Aug 19 09:56:48 2009] [error] [client 81.140.4.196] File does not exist: /home/XXXXXX/public_html/favicon.ico
    [Wed Aug 19 09:56:17 2009] [error] [client 81.140.4.196] File does not exist: /home/XXXXXX/public_html/404.shtml
    [Wed Aug 19 09:56:17 2009] [error] [client 81.140.4.196] File does not exist: /home/XXXXXX/public_html/favicon.ico
    [Wed Aug 19 09:45:57 2009] [error] [client 208.226.210.206] File does not exist: /home/XXXXXX/public_html/404.shtml
    [Wed Aug 19 09:45:57 2009] [error] [client 208.226.210.206] File does not exist: /home/XXXXXX/public_html/favicon.ico
    [Wed Aug 19 09:41:07 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:40:20 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:39:20 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:38:20 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:38:09 2009] [error] [client 82.159.178.6] File does not exist: /home/XXXXXX/public_html/500.shtml, referer: http://www.domain.co.uk/news/wp-admin/post-new.php
    [Wed Aug 19 09:34:56 2009] [error] [client 72.52.255.82] PHP Fatal error: Class 'xml_sitemap' not found in /home/XXXXXX/public_html/news/wp-content/plugins/xml-sitemaps/xml-sitemaps.php on line 110

    I have deleted the xml plugin and it is still occuring?

    Any ideas??
     
    geester1, Aug 19, 2009 IP
  6. webprone

    webprone Well-Known Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    133
    #6
    @geester1
    You deleted your wordpress plugin but the error occurred from the .htaccess
    aslo remove these lines from .htaccess
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /news/
    RewriteRule ^(sitemap\.xml|sitemap\.xml\.gz)$ /news/wp-content/sitemaps/$1 [L]
    </IfModule>
    PHP:
     
    webprone, Aug 20, 2009 IP
  7. geester1

    geester1 Well-Known Member

    Messages:
    2,250
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    105
    #7
    Umm, if I remove the lines you say, the plugin doesnt work!
     
    geester1, Aug 20, 2009 IP
  8. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Didn't you already delete the plugin?

    So deleting those lines in htaccess is fine.
     
    premiumscripts, Aug 20, 2009 IP