The MU forums have moved to WordPress.org

comment_content is blank all of a sudden (6 posts)

  1. mdgross
    Member
    Posted 14 years ago #

    Visitors have been commenting on my WPMU blogs for years now. On Saturday afternoon the comment_content started coming in blank for no apparent reason. All of the comments prior to Saturday are unaffected. I logged in to the MySQL database and confirmed the comment_content field is empty the database for recent comments.

    What's so bizarre about this problem is no one claims to have changed anything and I've went so far as to restore the comment template from last month and uninstall recaptcha. It didn't help.

  2. mdgross
    Member
    Posted 14 years ago #

    So I opened up wp-comments-post.php and found this chunk:

    $comment_author       = ( isset($_POST['author']) )  ? trim(strip_tags($_POST['author'])) : null;
    $comment_author_email = ( isset($_POST['email']) )   ? trim($_POST['email']) : null;
    $comment_author_url   = ( isset($_POST['url']) )     ? trim($_POST['url']) : null;
    $comment_content      = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null;

    Directly below it I added:

    mail($my_email, 'comment test', $comment_content, $my_headers)

    When I submit a comment I get the fully "comment content" text in the e-mail but it doesn't arrive in the database along with the rest of the fields.

  3. tdjcbe
    Member
    Posted 14 years ago #

    Anything in the webserver's error logs?

    You're not seeing any database tables corrupted or locked when you look at the db, are you?

    Any problems with posting or other changes? If you're in some sort of hosting account, are you anywhere near the allocated space allocation?

    Are you really running v2.7 as marked?

  4. mdgross
    Member
    Posted 14 years ago #

    Database tables look fine
    No problems posting or anywhere else
    Comment-content is saved to db when comment is edited through wp-admin
    Not on a hosting account, tons of extra hard drive space
    WPMU 2.7 is our version as marked
    Apache/MySQL server log look fine

  5. mdgross
    Member
    Posted 14 years ago #

    Problem solved.

    WebPurify (profanity filter plug-in) was blanking the comment text because our subscription has expired. I wish they would just replace the text with "RENEW YOUR WEBPURIFY KEY" instead of just making all new comments blank.

  6. tdjcbe
    Member
    Posted 14 years ago #

    Be sure to tell them so when you email them. :)

    Glad you got it working.

About this Topic