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 | 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/
):
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.
Related: #6685, #6959, #5313.