• Hi, I know this type of thing has been raised before, but after checking the topics am no further ahead. I’m running 1.5.2 and love it, except for the error messages that pop up after posting a comment. Abbreviated example below.

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ” AND post_status = ‘publish’ AND post_date <]
    UPDATE wp_posts SET comment_status = ‘closed’, ping_status = ‘closed’ WHERE (comment_status = ‘open’ OR ping_status = ‘open’)’ AND post_status = ‘publish’ AND post_date < ‘2006-01-03’

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/blog/wp-includes/wp-db.php:98) in /var/www/html/blog/wp-comments-post.php on line 51

    Following one suggestion I uploaded a new version of wp-db.php but nothing changed. The comments appear OK, but it would be nice to get rid of the error messages. Help would be greatly appreciated, thanks.

  • The topic ‘Error messages when commenting’ is closed to new replies.