Skip to:
Content

#5372 closed defect (bug) (duplicate)

Friend requests show up as notifications but not as users in a list

Reported by: nat0n Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.9.1
Component: Component - Core Keywords:
Cc:

Description

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@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)

Change History (3)

comment:1 @nat0n13 months ago

Eh, bugging I mean (oops)

comment:2 @ircbot13 months ago

This ticket was mentioned in IRC in #buddypress-dev by naton. View the logs.

comment:3 @boonebgorges13 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

nat0n and I worked through this in IRC. It turns out that this is a recurrence of #3725. He was able to fix the issue by resaving his Name field (and thus re-syncing his bp-xprofile-fullname-field-name setting). I don't think that this is a more general bug; it's probably a result of an abnormal upgrade for his site. So I'm going to close as duplicate.

Note: See TracTickets for help on using tickets.