[buddypress-trac] [BuddyPress Trac] #5372: Friend requests show up as notifications but not as users in a list

buddypress-trac noreply at wordpress.org
Tue Feb 4 20:11:23 UTC 2014

#5372: Friend requests show up as notifications but not as users in a list
 Reporter:  nat0n         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.9.1
 Severity:  normal        |   Keywords:
 I've been buggering @jjj and @imath about this on IRC and Twitter and was
 told to submit a report here, which is a first for me so bare with me if
 I'm doing it wrong.

 The title pretty much sums it up - I can't get any friend requests to show
 up unless I'm disabling WP-BP profile sync - and I think I have tracked it
 down to the bp-members/bp-members-template.php file. At least that place
 is where I get the following result:

 If I add a simple "var_dump($members_template)" on line 319 of bp-members
 /bp-members-template.php, I get this when sync checkbox selected:

 object(BP_Core_Members_Template)#171 (10) { ["current_member"]=> int(-1)
 ["member_count"]=> int(1) ["members"]=> array(1) { [0]=>
 object(stdClass)#170 (10) { ["ID"]=> string(1) "5" ["user_registered"]=>
 string(19) "2012-09-26 20:30:28" ["user_login"]=> string(4) "demo"
 ["user_nicename"]=> string(4) "demo" ["display_name"]=> string(4) "Demo"
 ["user_email"]=> string(16) "demo at example.com" ["id"]=> string(1) "5"
 ["is_friend"]=> string(1) "0" ["total_friend_count"]=> int(0)
 ["last_activity"]=> string(19) "2014-01-31 12:38:14" } } ["member"]=> NULL
 ["in_the_loop"]=> NULL ["pag_page"]=> int(1) ["pag_num"]=> int(20)
 ["pag_links"]=> NULL ["total_member_count"]=> int(1) ["type"]=> string(12)
 "alphabetical" }

 And, after reload, when sync checkbox NOT checked:

 object(BP_Core_Members_Template)#171 (10) { ["current_member"]=> int(-1)
 ["member_count"]=> int(0) ["members"]=> array(0) { } ["member"]=> NULL
 ["in_the_loop"]=> NULL ["pag_page"]=> int(1) ["pag_num"]=> int(20)
 ["pag_links"]=> NULL ["total_member_count"]=> int(0) ["type"]=> string(12)
 "alphabetical" }

 Am I on to something here or do I look at the wrong place? This array
 should be filled with my soon-to-be friends user data, right? No matter if
 I have a profile sync active or not? (I'd love to keep sync active btw)

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5372>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list