Support » Plugin: BuddyPress Default Cover Photo » Fatal Error with Buddypress 2.6

  • Resolved syborg


    Hello, the plugin triggers a Fatal Error with the new 2.6 version of Buddypress :
    Fatal error: Call to undefined function bp_get_current_group_id() in /home/.../public_html/.../wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 484

    I don’t know if it’s the right place and the perfect way, but before the next update, if it can help someone, I changed the first line of the file group-cover.php like this :

    if ( class_exists( 'BP_Group_Extension' ) ) :
    if ( class_exists( 'BP_Group_Extension' ) && bp_is_active('groups') ) :

    See also : The original Buddypress forum topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you’re like me and have buddypress groups turned off, this will produce the error shown. I fixed by adding this to



    $group_id = bp_get_current_group_id();


    $group_id = (bp_is_active('groups') ? bp_get_current_group_id() : '');

    and change:

    if ( empty( $group_id ) && bp_get_new_group_id() ) {
        $group_id = bp_get_new_group_id();


    if(bp_is_active('groups')) {
        if ( empty( $group_id ) && bp_get_new_group_id() ) {
            $group_id = bp_get_new_group_id();

    IMO, they should have tested this before pushing out an update. Hopefully they figure things out.


    @rrecurse Nice fix, Thank you for posting it.

    I forget to say that the error appears if you turn off the groups feature, sorry :/.

    @rrecurse I tried your fix, but a new fatal error appeared for me :

    Fatal error: Call to undefined function bp_is_group_admin_screen() in .../wp-content/plugins/buddypress-cover-photo/group-cover.php on line 157

    This new fix is more elegant, and worked for me :

    Plugin Author SeventhQueen


    Hi there, the update will be available in a few minutes. Thanks for pointing this out.


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error with Buddypress 2.6’ is closed to new replies.