Works fine for me. Do you use a BP specific theme ?
Hello Dan,
I’m using bp-default.
I’ve tried to dig a bit deeper and it looks like the friends_check_friendship_status function in bp-friends-functions.php is reporting incorrect friendship status. Maybe this info can help…
Anton.
Avoid using bp-default with 2.x, this historical theme is now outdated and is only delivered for back compat with older sites.
Anyway, try by activating 2013 or 2014 to see if everithing is ok. And if, choose another theme.
Switched to 2014 – unfortunately no luck.
The issue is still present.
PS
I know that bp-default is no longer supported, but I’m forced to stick with it for some time 🙁
Anyway, looks like the issue is not related to bp-default.
I have identified that friends_check_friendship_status()
function is returning 'not_friends'
because the elseif (has_filter(‘bp_user_query_populate_extras’, 'bp_friends_filter_user_query_populate_extras’))
is triggering return ‘not_friends’
.
But I don’t understand at the moment on why this is happening…
Update:
As a temp fix (I know it’s by far not perfect) I’ve replaced the
return ‘not_friends’
which is triggered by the elseif
(see post above)
with
return BP_Friends_Friendship::check_is_friend( $user_id, $possible_friend_id );
I understand that by doing this I’m loosing some of the optimization and this will most likely lead to the increased amount of queries to the DB, but for now I haven’t found a better fix.
I hope someone will be able to find a smarter solution for this issue.
Or maybe give an idea of why this is happening in my case.