Fatal error: Call to undefined method stdClass::have_posts()
-
Hi there!
I hove that someone will help me with this problem. I get an error on topics pages:
Fatal error: Call to undefined method stdClass::have_posts() in /home/jorjette/public_html/wp-content/plugins/bbpress/includes/replies/template-tags.php on line 181
On the bbpress file, the section look like this:
function bbp_replies() {
// Put into variable to check against next
$have_posts = bbpress()->reply_query->have_posts();
// Reset the post data when finished
if ( empty( $have_posts ) )
wp_reset_postdata();
return $have_posts;
}
Well the line 181 is :
$have_posts = bbpress()->reply_query->have_posts();
But I think the problem is how the function call the wp function wp_reset_postdata();.
What can I do to change or resolve the issue? Can be a bug in BBpress plugin? This problem appears when I update to WordPress 3.5
- You must be logged in to reply to this topic.