My posts page displays “no posts found” while right above it, there is “All (1) | Published (1)” (it is a new installation). The post is also invisible on the live site, not only in the administration.
I guess it might have something to do with my database which is SQL Server using WP Db Abstraction. So I installed debug bar and found this query:
SELECT TOP 0 * FROM wp_posts WHERE 1=1 AND wp_posts.post_type LIKE ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status LIKE ‘future’ OR wp_posts.post_status LIKE ‘draft’ OR wp_posts.post_status LIKE ‘pending’ OR wp_posts.post_status LIKE ‘private’) ORDER BY wp_posts.post_date DESC
WP_Posts_List_Table->prepare_items, wp_edit_posts_query, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, pdo_wpdb->query, pdo_wpdb->_post_query
SELECT TOP 0looks suspicious to me, what would you say? If that’s indeed a bug, any suggestion on how to fix it?
- The topic ‘[Plugin: WP Db Abstraction] SELECT TOP 0?’ is closed to new replies.