Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 1 replies (of 1 total)

  • Lynq
    Participant

    @lynq

    I never had an issue with updating wordpress to 3.5 or updating bbPress so I would guess that it might be a plugin conflict, but I am not sure.

    Have you tested deactivating certain plugins?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar