Skip to:
Content
Pages
Categories
Search
Top
Bottom

Duplicate edit-profile groups


  • adamt19
    Participant

    @adamt19

    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:

    First
    Last
    Zip
    Birthday
    First
    Last
    Zip
    Birthday
    [submit]

    It only happens in two out of three groups. The other, 3rd profile group is not suffering from this issue.

Viewing 12 replies - 1 through 12 (of 12 total)

  • adamt19
    Participant

    @adamt19

    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.


    shanebp
    Moderator

    @shanebp

    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.


    adamt19
    Participant

    @adamt19

    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.


    adamt19
    Participant

    @adamt19

    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.


    adamt19
    Participant

    @adamt19

    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.


    shanebp
    Moderator

    @shanebp

    >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


    adamt19
    Participant

    @adamt19

    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.


    adamt19
    Participant

    @adamt19

    ^.. 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.


    adamt19
    Participant

    @adamt19

    Hi @shanebp

    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..


    shanebp
    Moderator

    @shanebp

    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.


    adamt19
    Participant

    @adamt19

    @shanebp in wp_bp_xprofile_fields there is only one instance of each field/question


    adamt19
    Participant

    @adamt19

    Again this is only occurring with the first two profile groups on the edit screen: Base & About.

    Our extended profile group doesn’t have this issue for some reason.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Duplicate edit-profile groups’ is closed to new replies.
Skip to toolbar