Jump to content
Sign in to follow this  
style

BuddyPress Friends Error in members-loop.php

Recommended Posts

style

Hi, If you have friends disabled in BuddyPress you'll receive an error when accessing "Activity" page. The error is in the members-loop.php. The fix can be found here: http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/apprent-bug-in-buddypress-when-friends-is-disabled/ As such, can the members-loop.php be changed to the following: On line 52, replace <?php bp_member_add_friend_button() ?> with <?php if (bp_is_active('friends')) : echo bp_member_add_friend_button(); endif; ?> That keeps the function in there if you ever use Friends again, but takes it out if it??™s turned off. Not sure why this isn??™t the default way of doing this.

Share this post


Link to post
Share on other sites
cmunns

Perhaps the BP-Template-Pack needs to be updated.

Share this post


Link to post
Share on other sites
Simon

The is bptp bug. Unfortunately it was last updated 14 months ago. You could try posting here and hope they update it, at least you have a 'fix' for now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×