Problem with Viewing Profiles Page


#1

Call to undefined function friends_check_friendship_status() in .../wp-content/plugins/buddypress-media/app/main/privacy/BPMediaPrivacy.php on line 282

Version 2.6.6 of Media plugin

Its only happens when I am signed-in and only on the profile page.

I have friends element turned off as a feature in wordpress as I do not want that functionality WordPress 3.5.1.

Any suggestions how I fix it would be appreciated.


#2

Hi,

This is a bug. We'll fix this in an update quickly. Meantime, you can fix this by editing buddypress-media/app/main/privacy/BPMediaPrivacy.php.

Find this code:

$is_friend = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id );  
if ( $is_friend == 'is_friend' ){  
    $current_privacy = 4;  
}  

and replace it with:

if ( bp_is_active( 'friends' ) ) {  
    $is_friend = friends_check_friendship_status( $bp->loggedin_user->id, $bp->displayed_user->id );  
    if ( $is_friend == 'is_friend' ){  
        $current_privacy = 4;  
    }  
}  

Regards.


#3

Worked perfectly,

Thanks a million.


#4

Hi @cat555, We are very pleased that your issues has been fixed. I am Masking this issue as closed. Please visit our support forum for any rtMedia related issues.


#5

#6