WP 2.3.3 Comments Feed Database Error: AND comment_approved = ‘1’ ORDER BY…
-
Googling this:
AND comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10
… nets 10 pages of error messages and counting so this is a widespread problem.
For my blog’s comment feed, it generates this VISUAL error:
XML Parsing Error: junk after document element Location: https://christophdollis.com/blog/comments/feed Line Number 4, Column 9: </div><?xml version="1.0" encoding="UTF-8"?> ----------------------^
Viewing the source, I see:
<div id='error'> <p class='wpdberror'><strong>WordPress database error:</strong> [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 comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10' at line 1]<br /> <code>SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10</code></p> </div><?xml version="1.0" encoding="UTF-8"?> <!-- generator="wordpress/2.3.3" --> <rss version="2.0" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:dc="https://purl.org/dc/elements/1.1/" >
Deactivating all plugins and ensuring Gzip compression was turned off didn’t help. Changing the theme to either the default or classic theme didn’t help. Changing the theme and turning off all plugins didn’t work.
I’m stumped. Lots of people are having this problem. Can you help me?
– Christoph
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP 2.3.3 Comments Feed Database Error: AND comment_approved = ‘1’ ORDER BY…’ is closed to new replies.