Opened 13 years ago
Closed 13 years ago
#3446 closed defect (bug) (fixed)
Error while promoting user to group mod/admin
Reported by: | slaFFik | Owned by: | slaFFik |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | major | Version: | 1.5 |
Component: | Extended Profile | Keywords: | has-patch |
Cc: |
Description
While working with BP Default Data I found a problem in promoting users in group. Here is the full text of an error:
Notice: Undefined index: Name in Z:\home\ovi\trunk\wp-content\plugins\buddypress\bp-core\bp-core-classes.php on line 157
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\ovi\trunk\wp-content\plugins\buddypress\bp-core\bp-core-classes.php:157) in Z:\home\ovi\trunk\wp-includes\pluggable.php on line 934
I have WP_DEBUG enabled and rather severe php rules of displaying errors.
Attachments (1)
Change History (7)
#2
@
13 years ago
But users are promoting and demoting - I just see this error, going back in the browser and reloading the page.
#3
@
13 years ago
- Severity changed from normal to major
Ok, here is the description of an error. It tries to get full_name of that user we are working with. It uses the field name called Name (main undeletable field) - and I don't have it in the DB - I have Base instead (I just renamed it).
So the problem is that this option:
$bp->site_options['bp-xprofile-fullname-field-name']
is not updated when we are renaming the field with ID = 1 (I have tested this).
Working with the patch...
forgot to add - using the very latest BP trunk version.