Skip to:
Content
Pages
Categories
Search
Top
Bottom

Call to undefined method stdClass::have_posts()

Published on July 18th, 2012 by Jeff

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?

My "pimped press" www.stratoliner.me

Published on July 18th, 2012 by AAShepAA

I still have a few tweaks that need to be made – but I think it look pretty good!

Home

Shep

Videos in BBPress

Published on July 17th, 2012 by Prometheus Fire

If this has been answered somewhere, please point me to it, but is there a video solution for BBPress.

Since topics and replies are just custom post types, I thought oembed would work in them, but it doesn’t seem to. I’ve followed both rules for posting a video in a blog post (url on a line by itself, or surrounded by the embed shortcode) and it does nothing.

Is there a plugin solution for this? Or is it already builtin and I’m just suffering from a plugin conflict?

Is there a better way to do this? Widget backgrounds

Published on July 17th, 2012 by AAShepAA

I am using a child theme and have added a few things to that theme’s CSS. I was thrying to add a backbround to the widgets in the sidebar. This code works, but there has to be a better way than having to do this for every widget:

div#content
{
background: url(images/background.gif) left top repeat;
}
div#theme-my-login-5
{
background: url(images/background.gif) left top repeat;
}
div#loginwithajaxwidget-4
{
background: url(images/background.gif) left top repeat;
}
div#pm4wp-widget-5
{
background: url(images/background.gif) left top repeat;
}
div#useronline-6
{
background: url(images/background.gif) left top repeat;
}
div#eshopw_cart-3
{
background: url(images/background.gif) left top repeat;
}
div#bbp_topics_widget-2
{
background: url(images/background.gif) left top repeat;
}
div#slideshow-7
{
background: url(images/background.gif) left top repeat;
}

Trying to get the profile URL for a given WordPress ID

Published on July 17th, 2012 by Paul Bearne

Hi Guys

I am the author who looks after https://wordpress.org/extend/plugins/author-avatars and I have been asked to add the option to link to bbpress profile verse the wordpress profile

Got my bit working

untill I got to here

if (function_exists('bb_get_profile_link')) {
    $link = bb_get_profile_link('id='.strval($user->user_id));
}

and found that I am get “undefined function bb_get_profile_link()” as this is a post/page and not a bbpress page so my guess that bbpress code is not loaded.

So what is the best way to get the profile URL / load this function?

Many thanks

Paul

Subscribe/Favourite ajax links issue

Published on July 17th, 2012 by TFUME

It looks like there may be an issue with topic Subscribe-Unsubscribe and Favourite Add-Remove links only updating the browser screen on the first two clicks.

The users profile still gets updated regardless of amount of clicks but the browser doesn’t. Can be replicated here. Refreshing the page allows another two clicks.

Cheers

Download link stand alone version 1.1 not working.

Published on July 17th, 2012 by wvanderzee

Hi there,

Like to download the stand alone version 1.1 as listed on: https://bbpress.org/download/legacy/. But the link doesn’t seem to exist.

FYI: At the moment, I have a forum running using the stand alone version. I’ve planned migrating it to WordPress/bbPress, but for now like a copy of the stand alone installation package.

Thanks!

Wouter

Edit link in single group forum topic page not working

Published on July 16th, 2012 by kraigg

Good morning,

I’m using bbPress 2.1 and Buddypress 1.6 to create groups and group forums within.

My problem is the ‘Edit’ link in the group forum posts don’t seem to work.
http://imageshack.us/photo/my-images/7/editlinkingroupforumtop.png/

When I click the edit link for a post, it goes to http://www.example.com/groups/mygroup/forums/topic/reply-to-mytopic/edit/, which is a ‘create new topic’ page. There is no reply form, with the text for that post, that appears.

I also have the same problem with the ‘Split’ link not working either. ‘Trash’ and ‘Spam’ work fine. The only bbPress plugin I’m using is the bbPressModeration plugin.

Customising bbp_list_forums – Last Poster Block

Published on July 16th, 2012 by Lynq

Hey guys,

I am putting up a topic to show how I have created the layout on http://teamoverpowered.com/forums/

My aim when creating the theme was to try and create a last poster block that would work throughout the forums and sub forums list.

custom_bbp_list_forums – this function creates the sub forums under the main forum

public function custom_bbp_list_forums( $args = '' ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = '';
    $i = 0;
    $count = array();

    // Defaults and arguments
    $defaults = array (
        'before'            => '',
        'after'             => '',
        'link_before'       => '',
        'link_after'        => '',
        'count_before'      => ' (',
        'count_after'       => ')',
        'count_sep'         => ', ',
        'separator'         => ', ',
        'forum_id'          => '',
        'show_topic_count'  => true,
        'show_reply_count'  => true,
        'show_freshness_link'  => true,
    );
    $r = bbp_parse_args( $args, $defaults, 'list_forums' );
    extract( $r, EXTR_SKIP );

    // Bail if there are no subforums
    if ( !bbp_get_forum_subforum_count( $forum_id ) )
        return;

    // Loop through forums and create a list
    $sub_forums = bbp_forum_get_subforums( $forum_id );
    if ( !empty( $sub_forums ) ) {

        // Total count (for separator)
        $total_subs = count( $sub_forums );
        foreach ( $sub_forums as $sub_forum ) {
            $i++; // Separator count

            // Get forum details
            $count     = array();
            $show_sep  = $total_subs > $i ? $separator : '';
            $permalink = bbp_get_forum_permalink( $sub_forum->ID );
            $title     = bbp_get_forum_title( $sub_forum->ID );

            // Show topic count
            if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
                $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );
            }

            // Show reply count
            if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
                $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );
            }

            // Counts to show
            if ( !empty( $count ) ) {
                $counts = $count_before . implode( $count_sep, $count ) . $count_after;
            }

            if ( !empty( $show_freshness_link ) ) {
                $freshness_link = "" . BBP_Default::teamop_get_last_poster_block( $sub_forum->ID ) . "";
            }

            // Build this sub forums link
            if ($i % 2) { $class = "odd-forum-row"; } else { $class = "even-forum-row"; }
            $output .= "" . $link_before . '<a href="' . $permalink . '">' . $title . '</a>' . $counts . $freshness_link . $link_after . "";
        }

        // Output the list
        echo apply_filters( 'bbp_list_forums', $before . $output . $after, $args );
    }
}

I then call that function inside loop-single-forum.php like so:

BBP_Default::custom_bbp_list_forums( array (
        'before'            => '',
        'after'             => '',
        'link_before'       => '',
        'link_after'        => '',
        'count_before'      => 'Topics: ',
        'count_after'       => '',
        'count_sep'         => 'Posts: ',
        'separator'         => '',
        'forum_id'          => '',
        'show_topic_count'  => true,
        'show_reply_count'  => true,
        'show_freshness_link' => true,
        ));

Inside the first function I am also calling a second custom function called custom_get_last_poster_block

function custom_get_last_poster_block( $subforum_id = "" ) {

            if ( !empty( $subforum_id ) ) {
                $output = "";
                $output .= "<a href='". bbp_get_forum_last_topic_permalink( $subforum_id ) ."'>" . bbp_get_topic_last_reply_title( bbp_get_forum_last_active_id( $subforum_id ) ) . "</a>";
                $output .= "";
                $output .= "by ";
                $output .= bbp_get_author_link( array( "post_id" => $subforum_id, "size" => 14 ) );
                $output .= "";
                $output .= "";
                $output .= bbp_get_forum_last_active_time( $subforum_id );
                $output .= "";
            } else {
                $output = "";
                $output .= "<a href='". bbp_get_forum_last_topic_permalink() ."'>" . bbp_get_topic_last_reply_title( bbp_get_forum_last_active_id() ) . "</a>";
                $output .= "";
                $output .= "by ";
                $output .= bbp_get_author_link( array( "post_id" => bbp_get_forum_last_active_id(), "size" => 14 ) );
                $output .= "";
                $output .= "";
                $output .= bbp_get_forum_last_active_time( bbp_get_forum_last_active_id() );
                $output .= "";
            }

            return $output;

        }

This then creates my sub forum list, I added some extra classes in I can hook onto and display:none if need. I decided when creating me theme that I would get as much information showing as possible, then just use CSS to customise it.

The final functions is one I call inside loop-single-topic.php.

    public function custom_get_last_poster_block_topics() {

            $output .= "";
            $output .= bbp_get_author_link( array( "post_id" => bbp_get_forum_last_active_id(), "size" => 14 ) );
            $output .= "";
            $output .= "";
            $output .= bbp_get_topic_last_active_time( bbp_get_topic_last_active_id() );
            $output .= "";

        return $output;

    }

This is my final function and it just adds the last poster block inside the topics list.

If you need any more help then let me know.

UPDATE: Please see the following topic for updated code

I have created a bbPress starter theme with a phpBB look and feel

Slow down; you move too fast

Published on July 16th, 2012 by roddaut

Hi,

Ever since updating to the latest bbpress plugin when users or admins try to post a new topic or reply to a topic we get the error “Slow down; you move too fast.” I’ve looked at other posts on this forum having the same issue but did not find anything that helped me.

Also this problem happens any time anyone posts. It is not the result of someone trying to post too much too quickly. Throttle time is set for 10 seconds. And when I try to change the throttle time it reverts back to 10 seconds. Maybe that’s a clue as to what the problem is?

Just to sum up:
The issue exists for all users and admins.
The issue happens for all posts – a person cannot be throttled because they haven’t succeeded in making one post.
The problem happened only after updating bbpress but not before.

Thanks in advance for your help.

Rodney

Skip to toolbar