[buddypress-trac] [BuddyPress Trac] #6091: Duplicate xprofile fields when using object cache

buddypress-trac noreply at wordpress.org
Wed Jan 7 18:46:13 UTC 2015


#6091: Duplicate xprofile fields when using object cache
-------------------------------+------------------------------
 Reporter:  lakrisgubben       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  XProfile           |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by r-a-y):

 * keywords:   => reporter-feedback


Comment:

 So I've looked into the code that lakrisgubben mentioned and am trying to
 figure out how `$groups[$index]->fields` would be populated before line
 299:
 https://buddypress.trac.wordpress.org/browser/tags/2.1.1/src/bp-xprofile
 /bp-xprofile-classes.php@:299-303#L292

 `$groups` before line 299 should not have the `fields` property set yet.

 `$groups` should only contain the data from the `wp_bp_xprofile_groups`
 table:
 https://buddypress.trac.wordpress.org/browser/tags/2.1.1/src/bp-xprofile
 /bp-xprofile-classes.php#L175
 https://buddypress.trac.wordpress.org/browser/tags/2.1.1/src/bp-xprofile
 /bp-xprofile-classes.php?marks=358-359#L318

 lakrisgubben - Do you have any steps to replicate the duplicate profile
 fields issue?  Are you using any custom snippets or code to grab / show
 the profile data on other pages?

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


More information about the buddypress-trac mailing list