Skip to:
Content
Pages
Categories
Search
Top
Bottom

Call to undefined method stdClass::have_posts()

  • @splatterrific

    Member

    I am using:
    Wordpress Version 3.4.1
    bbPress Version 2.1
    BuddyPress Version 1.5.6
    Tersus Theme Version 1.3 (http://themeforest.net/item/tersus-responsive-wordpress-theme/2343187)

    I created a new Group, and then posted a new topic in that group. This is where the error is being thrown.

    Here is a screenshot of what’s happening http://screencast.com/t/ZU0ohu061o4Q

    Error says:

    Fatal error: Call to undefined method stdClass::have_posts() in /home/…/…/wp-content/plugins/bbpress/bbp-includes/bbp-reply-template.php on line 168
    

    Notice also, that the page title being displayed is from one of the WordPress posts that came with auto-importing dummy data for the theme.

    I know a link to the site would help, but I am working with a client who’s not comfortable getting the link out before site-live time. So, sorry about that.

    I asked for help from WordPress Forum support, and was told that this was most probably a theme compatibility issue. So I went to the theme’s support forum.

    Last night, the theme’s author/s were helpful enough to guide me through what I assume are the usual stuff in troubleshooting this kind of stuff.

    Here are the things I’ve done so far:
    1. Disabled all plugins apart from bbPress – this resulted to the forum giving me a 404
    2. Enabled BuddyPress – this brought back the forums, but with the same issue
    3. Emptied all sidebar widgets that have to do with the theme.
    4. Used the other theme package (bbPress Twenty Ten).
    5. Deleted the function referenced in the error. Led to some new error. This was a desperate, illogical attempt on my part so i undid that.
    6. Deleted the wordpress post being shown in the page title. It just displayed the title of the next wordpress post in line.
    Note: every time i check to see if that fixed it, i do a clear-cache-reload, just so i’m sure nothing in cache was giving me this headache.

    I really hope someone could help out.. Has anyone seen this kind of error ever been documented elsewhere?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @briantoronto

    Participant

    Had the same issue. I rolled back the plug-in to 2.0.3 and it fixed the issue for me.

    Brian

    @splatterrific

    Member

    Unfortunately, I came upon this issue upon installation of bbp 2.1

    @johnjamesjacoby

    Keymaster

    These errors have come up a few times here recently. It’s a regression in a way, but it’s also the themes doing-it-wrong, and using bbPress loops outside of their intended purposes. My fault for not documenting them more in-depth, or protecting the data from being used incorrectly.

    It’s most likely because of the themes using bbp_has_replies() outside of the main query loop. More helpful than the error itself would be the backtrace of what actually caused the error to occur.

    @pavels

    Participant

    I have the same issue.

    All i need to do is to show all forums with topics on main page. Here is my archive-forum.php

    When i try to use BB_Query i get error.
    When i try to use shortcode i get error.

    
    <ul>
     
    	<li>
    		<a href="" title="" rel="nofollow">
    		
    	</a></li>
      <li> 
         'art'
            )
          );
          $topic_query->results;*/
     
          //$forum_id = bbp_get_forum_id();
          //echo do_shortcode("[bbp-single-forum id=$forum_id]"); 
        
        
          if ( !bbp_is_forum_category() && bbp_has_topics() ) :  
            bbp_get_template_part( 'loop', 'topics-custom' );        
          endif; 
        
        ?>  
      </li>  
      
    </ul>

    @pavels

    Participant

    And as you can see i can’t even post code part. I have tried PRE + your CODE button.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.