Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem with Friend related functions when Friends module disabled

  • @foralien

    Participant

    I’m not actually sure if this is a bug (or probably it’s been already reported), but… the function bp_get_total_friend_count() spreaded over template’s files of new default theme (ex. in activity/index) to check if a user has friends leads to “call undefined function” when friend’s module is disabled…

    Of course, I can add if-function-exists checking myself – but would be nice to have that hardcoded into files supplied with BP release

Viewing 7 replies - 1 through 7 (of 7 total)
  • @djpaul

    Keymaster

    Report this as a bug on https://trac.buddypress.org/ please using your username and password from this site (btw, I’m assuming you’re testing this in 1.2-beta since you didn’t give version numbers).

    @foralien

    Participant

    Ok. I’ve reported it… and it surely was 1.2-beta, I’ve stated it in the ticket. I’m quite new to all this bug-reporting stuff so was not sure what to do :)

    @windhamdavid

    Participant

    fyi ~ I duplicated this error with trunk so I’ve reopened the ticket. https://trac.buddypress.org/ticket/1719

    @windhamdavid

    Participant

    turns out writing a conditional for this is difficult since loader.php is setting up the /bp-friends component. If you want a quick and effective way around this error message – just add this to your themes functions.php file

    function bp_get_total_friend_count() {}

    @windhamdavid

    Participant

    ps.. make sure you have the friends component disabled before you edit your functions file or you’ll get a lovely white screen of death.

    @windhamdavid

    Participant

    fixed in trunk ~ https://trac.buddypress.org/changeset/2620please mark as closed.

    @patsar

    Participant

    I had the same problem. Using modifications from trunk (https://trac.buddypress.org/changeset/2620) has solved it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with Friend related functions when Friends module disabled’ is closed to new replies.
Skip to toolbar