Title: Error messages when commenting
Last modified: August 18, 2016

---

# Error messages when commenting

 *  [djfraser](https://wordpress.org/support/users/djfraser/)
 * (@djfraser)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/error-messages-when-commenting/)
 * 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.

## Tags

 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [information](https://wordpress.org/support/topic-tag/information/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [djfraser](https://wordpress.org/support/users/djfraser/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/error-messages-when-commenting/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
