WordPress.org

Ready to get started?Download WordPress

Forums

WordPress database error Illegal mix of collations (2 posts)

  1. mvandemar
    Member
    Posted 6 years ago #

    I recently started to get a ton of 500 errors from spam bots on one of my installations. Live people can comment just fine, but for some reason the automated comments are dying. The error log is filled with lines like this:

    [21-Jul-2008 14:07:30] WordPress database error Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' for query SELECT comment_ID FROM wp_xxxxxx_comments WHERE comment_post_ID = '44' AND ( comment_author = 'blahblahblah' OR comment_author_email = 'RktzKr2OXo@msn.com' ) AND comment_content = '{spammy comment snipped}' LIMIT 1 made by wp_allow_comment

    The comments table has a default charset of latin1, so not sure why this would be happening. I did find some references to older versions of MySQL having this issue when checking fields holding emails if the table was utf8, since the '@' literal is a different charset than utf8, but since the table in this case is latin1 I'm not sure how that ties in. Unless WP is doing some charset conversions before running queries? In any case not sure why only automated comment postings would trigger this.

    Any help would be appreciated, thanks.

  2. s8intcom
    Member
    Posted 5 years ago #

    Hey,

    Did you get any help with this?y Blog disappeared two days ago and I'm getting the same errors; illegal mix of collations

Topic Closed

This topic has been closed to new replies.

About this Topic