Support » Fixing WordPress » wp-comments-post.php 500 Internal server error

  • Resolved szarik


    Hi guys.

    I recently found a pretty strange problem with wp-comments-post.php on IE8 browser :/

    When I want to submit a blank comment (or with error in form) on my blog post (, an 500 Internal server error shows up.

    Do you know what is wrong?

    Thanks for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Problem resolved:

    Open: ‘wp-includes/functions.php’

    Change ‘$defaults = array( ‘response’ => 500 );’
    To ‘$defaults = array( ‘response’ => 200 );’

    Thats all 🙂

    Hi szarik,

    I was really happy when I found your solution ! Somuch time spent on this problem I just couldn’t figure out…

    Anyway, I wasn’t satisfied with the idea of hacking the core of WordPress. As you know, it can become a real pain in the ass if you have to constantly modify the core for every WordPress install. And I’m not even speaking of the WordPress updates…

    Here is the final solution I found by my side :

    I hope it will work for you too and for all of WordPress users like us 🙂

    Happy wordpress coding to all !

    Fluotonic, thanks for a reference.

    I have tried to follow the instruction, but the problem still persists. It’s really weird.

    We are having the same issue with admin-ajax.php file as well and for this reason, we could not approve any people’s comment.

    Any other ideas would be grateful.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-comments-post.php 500 Internal server error’ is closed to new replies.