[buddypress-trac] [BuddyPress Trac] #5570: `bp_get_member_profile_data` showing wrong values cached for other users

buddypress-trac noreply at wordpress.org
Sat Oct 18 04:35:08 UTC 2014


#5570: `bp_get_member_profile_data` showing wrong values cached for other users
----------------------------+------------------
 Reporter:  frederick.ding  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:
Component:  XProfile        |     Version:  2.0
 Severity:  major           |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------

Comment (by will_c):

 Quick update. I am still unclear as to the root cause of this bug, but I
 was able to find a workaround. I'm wondering if the issue is related to
 [https://buddypress.trac.wordpress.org/ticket/5636 this] bug as well, but
 not sure.

 It looks like the function bp_get_member_profile_data(field='Name or ID of
 field') is the cause of the problem. When using this function I am
 receiving duplicate information for users that don't have any field data
 filled in (only after the first load when retrieving data from the cache).
 I switched to using bp_get_profile_field_data()
 ([https://codex.buddypress.org/getting-started/guides/displaying-extended-
 profile-fields-on-member-profiles/ example]) and everything is working as
 expected. I have not taken a good look at the difference between these two
 functions, but hope to have some time this weekend to do so.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5570#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list