Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 1.2 r2238 – Error on Members page if 'Friends' is disabled

  • Avatar of haloid
    haloid
    Participant

    @haloid

    With the default theme being used, if I decide to disable the Friends feature, there will be the following error message on the Members page:

    PHP Fatal error: Call to undefined function bp_get_total_friend_count() in D:\Websites\menaradoa.com\wwwroot\new\wp-content\themes\bp-default\members\index.php on line 20

    Seems like the function get_total_friend_count() is not defined anywhere?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    I generally leave testing for this until right before the beta. So expect things to break if you turn off features until then.

    Avatar of Tore
    Tore
    Participant

    @toregus

    Ah! That was it! My website with latest trunk was exploding at lot with the friends feature disabled. Oh well, I might as well start using it.

    Avatar of featherodd
    featherodd
    Participant

    @featherodd

    @haloid if you want to jump the gun, wrap the elements that are calling “bp_get_total_friend_count” with the following:

    <?php if ( function_exists( 'friends_install' ) ) : ?>

    {{ li item here }}

    <?php endif; ?>

    As far as I know, the calls are made in the following places (inside the new default):

    /plugins/buddypress/bp-themes/bp-default/activity/index.php

    /plugins/buddypress/bp-themes/bp-default/members/index.php

    I’m with your brother. Friending is wack for niche networks. Fingers crossed that this is abolished in place more advanced grouping http://buddypress.org/forums/topic/friends-and-groups-for-buddypress-13

    UPDATE: I forgot about /group/create.php, which relies heavily on a users “friends” for the invite stage. Lame!!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.