Skip to:

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

  • Profile photo of 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\\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)
  • I generally leave testing for this until right before the beta. So expect things to break if you turn off features until then.

    Profile photo of Tore


    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.

    Profile photo of 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):



    I’m with your brother. Friending is wack for niche networks. Fingers crossed that this is abolished in place more advanced grouping

    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)
  • The topic ‘BP 1.2 r2238 – Error on Members page if 'Friends' is disabled’ is closed to new replies.
Skip to toolbar