I just noticed today that when I try to access a non existent post, it doesnt show a 404, but shows a sql error in the sidebar, and when I try to access a non existent page, it just shows a blank page.
the sql error is this:
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 ‘ORDER BY post_date ASC LIMIT 1’ at line 1]
SELECT ID, post_title FROM wp_posts WHERE post_date > ” AND post_type = ‘post’ AND post_status = ‘publish’ AND ID != ORDER BY post_date ASC LIMIT 1
and you can see the error here: http://www.mrkryptic.com/blog/?p=117 (look at the sidebar)
Just to note, I’m wp 2.2, and I’m pretty sure I didnt have this error with the previous version of wp.
It might also have something to do with me making a post and then deleting it
- The topic ‘SQL error and no 404’ is closed to new replies.