Support » Fixing WordPress » WordPress Comment Error – any solutions?

  • I posted a problem 2 days ago and it looks like there is no solution for it. Basically when someone tries to leave a comment on an error comes up saying “Error: please type a comment.”

    The link to the post with more detail is below:

    I am so close to giving up with WordPress and moving to MovableType. I really don’t want to but as I like everything about WordPress but as I cant find a solution to this problem I have to consider cutting my losses. But before I take the plunge I would appreciate if someone could help/guide me on this matter…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Very strange. Try re-uploading wp-comments-post.php.

    My only guess is that for some reason your host is filtering POST parameters with a name of comment, which sounds a little odd but would you mind doing a little test for us?

    In your activated theme find comments.php and find the textarea named comment, change the name to test_this and then in your root wordpress directory edit the file wp-comments-post.php, find the line:

    $comment_content = trim($_POST['comment']);

    and replace it with:

    $comment_content = trim($_POST['test_this']);

    Then try posting a comment again.

    EDIT: the textarea is named comment and not comments.

    It looks like I found the problem and its entirely my fault… I am so embarrased 🙁

    I dont know how this happened but i must have done /installed something which replaced this:

    $comment_content = trim($_POST[‘comment’]);

    with this:

    $comment_code = $_POST[‘code’]; // AuthImage

    So sorry but i have no idea how this happened, but u solved my problem none the less, thank you and i take full responsibility of this screw up, WORD PRESS ROCKS!!!

    Okay well that makes more sense than my theory and I’m glad my theory wasn’t right as that would have been insane and cause no end of support issues if hosts started doing that.

    Maybe a plugin had you add that line but instead of adding it you replaced an existing line?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Comment Error – any solutions?’ is closed to new replies.