#3189 closed defect (bug) (no action required)
Cannot update userprofile
Reported by: | flemmingbjerke | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Extended Profile | Keywords: | user profile |
Cc: | flemmingbjerke |
Description
When I try to update user profile, I got the following error:
Warning: trim() expects parameter 1 to be string, array given in /var/www/XXXX/wp-content/plugins/buddypress/bp-xprofile.php on line 717
Warning: Cannot modify header information - headers already sent by (output started at /var/www/XXXX/wp-content/plugins/buddypress/bp-xprofile.php:717) in /var/www/XXXX/wp-includes/pluggable.php on line 897
It happens when I set a checkbox or a multi select box in the "profile field setup", which gives an array. It is possible to add new members from a registration form including a checkbox field, but it comes to updating the profile, it fails.
I have disabled all plugins except multisite and buddypress. I use buddypress default theme. wp-3.1.2
It looks like this has already been fixed in our development version of BuddyPress. If you want to try to apply the development version's fix to your local copy; change /buddypress/bp-xprofile.php line 717 to this: http://trac.buddypress.org/browser/trunk/bp-xprofile/bp-xprofile-functions.php#L207 (line 207)