Duplicate edit-profile groups
I’m not sure how to troubleshoot an issue where a user goes to edit their profile information and the field groups are repeated, for example:
It only happens in two out of three groups. The other, 3rd profile group is not suffering from this issue.
ANy ideas? we use WPEngine – perhaps something to do with object caching?
THis is a big deal because when profiles are edited and saved, the information duplicates in the DB and displays duplicated on the front side for multi-select options.
It sounds like a theme issue.
Are you using a custom template for profile edit?
The fact that the 3rd group doesn’t exhibit the same behavior is a clue.
Try adding a fourth group and see if the 3rd group starts to also duplicate fields.
Ya I’m using sweetdate. Definitely a child-theme issue. I restored to base SD and it went away. I’ve disabled all plugins (other than BP) and am deleting functions.php code like 100 lines at a time.
interestingly, I added a 4th profile group, and now this problem only occurs on the FIRST profile group. The second profile group (About) no longer repeats fields.
I know it’s not your job to support this! 🙂 just wondering if anything popped into mind. I have the production site in maintenance mode because if people edit + save their profiles with the repeated fields populated, it’s saving the information doubly as well, which will persist even after I fix this bug. D: eek.
Deleting the 4th profile group did not re-introduce the problem on the 2nd profile group.
In other words, adding then deleting a 4th profile group fixed the issue for profile group no. 2.
THis is so weird.
Actually the ‘fixed’ profile group2 is related to something I deleted in functions. This is super weird. I guess I’ll report if I find it.. for future reference if anyone has a similar issue in their theme.
>am deleting functions.php code like 100 lines at a time.
Seems like a rather coarse approach.
Does the child-theme have a file for /members/single/profile/edit.php ?
If so, delete it.
If that removes the issue, you know the problem is in that file.
If not, look for a hook re …profile… in functions.php and bp-custom.php
I had replaced ‘edit’ and ‘profile’ templates with those that come with SD, and the problem persisted, so I was trying to narrow down which custom functions may be causing the issue, by deleting one section at a time.
This led me to the following discovery. Deleting this code:
global $bp_tabs; /* MM: The new array for our "base" information */ $bp_tabs['about'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About', 'kleo_framework')), 'group' => __('About', 'kleo_framework'), 'class' => 'regulartab' );
.. fixes the issue for the ‘About’ profile group.
^.. but this code has been in functions.php for months, whereas this issue is like a week old. Still baffled. And the ‘base’ profile group still has the issue.
This issue has popped up again and oddly enough when I do a complete ‘site-copy’ (WPEngine tool) and move the site to another install, the issue disappears. WPE is trying to help but we’re all scratching our heads on even where to begin.. any ideas?
When identical code /plugins can show symptoms on one server and not on another server.. It’s hard to believe it’s a “plugin conflict” or “theme issue”, but any more suggestions would be greatly appreciated! We’re in maintenance mode on the live site so to avoid users saving double information in the database..
How many instances of a problem field, such as Zip, do you have in the database on the install that is causing problems?
If there are more than one, then somehow multiple fields were created.
@shanebp in wp_bp_xprofile_fields there is only one instance of each field/question
- The topic ‘Duplicate edit-profile groups’ is closed to new replies.