Skip to:
Content

BuddyPress.org

Opened 9 years ago

Last modified 8 years ago

#7109 new defect (bug)

`wp_bp_xprofile_groups` DB table sometimes sets `Base` group to an `id` that is not `1`

Reported by: r-a-y's profile r-a-y Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: major Version: 1.2
Component: Extended Profile Keywords: dev-feedback
Cc:

Description

I've seen a few reports on the forums about the registration page and "Edit Profile" button not working correctly when the Extended Profiles component is enabled.

It appears this issue dates back quite far. At least BP 1.8 or even earlier:
https://buddypress.org/support/topic/bad-link-to-profile-edit/

More recent:
https://buddypress.org/support/topic/registration-and-edit-profile-issue/

The main problem is sometimes the wp_bp_xprofile_groups DB table sets the Base group at an id that isn't 1.

The only way this can happen is if the Base group is deleted somehow and then recreated, which auto-increments the id.

Since we do manual checks for id = 1, this breaks things like the registration page and "Edit Profile" link (/members/USER/profile/edit/group/1/):

https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-xprofile/bp-xprofile-screens.php?marks=57-60#L44

https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-members/bp-members-screens.php?marks=133-134,154-157#L133

This might be related to this:
https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-core/admin/bp-core-admin-schema.php?marks=412-414#L409

Looks like this dates as far back as v1.2.

Change History (2)

#1 @r-a-y
9 years ago

Related: #6685, #6959, #5313.

Last edited 9 years ago by r-a-y (previous) (diff)

#2 @DJPaul
8 years ago

  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.