default install gives sql/headers error on comment
-
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 ‘WHERE comment_author_email = ” ORDER BY comment_date DESC LIMI]
SELECT comment_date FROM WHERE comment_author_email = ” ORDER BY comment_date DESC LIMIT 1
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 ‘WHERE comment_author_url = ‘https://jael.bluewire.net.nz’ ORDER ]
SELECT comment_date FROM WHERE comment_author_url = ‘https://jael.bluewire.net.nz’ ORDER BY comment_date DESC LIMIT 1
Warning: Cannot modify header information – headers already sent by (output started at /home/hosted/kani/jael.bluewire.net.nz/public_html/wp-includes/wp-db.php:80) in /home/hosted/kani/jael.bluewire.net.nz/public_html/wp-comments-post.php on line 89
This happens when you click submit and post a new comment. The comment is posted fine, but you get this mess instead of being sent back to the comments list.
I am using a default 1.2.1 installation with a slightly-modified index.php and wp-comments.php. I’ve never touched wp-db.php or wp-comments-post.php (or indeed any files except wp-config.php, index.php and comments.php). There is no extra whitespace in vars.php.
Can anyone see the problem?
- The topic ‘default install gives sql/headers error on comment’ is closed to new replies.