WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Comment Error - any solutions? (5 posts)

  1. g0dz1lar
    Member
    Posted 8 years ago #

    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 http://www.webwisecrew.com an error comes up saying "Error: please type a comment."

    The link to the post with more detail is below: http://wordpress.org/support/topic/46282

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

  2. Yngwin
    Member
    Posted 8 years ago #

    Very strange. Try re-uploading wp-comments-post.php.

  3. jaseone
    Member
    Posted 8 years ago #

    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.

  4. g0dz1lar
    Member
    Posted 8 years ago #

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

  5. jaseone
    Member
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.