Profile fields empty on registration
-
Hi there,
I’m still running Buddypress 1.0 since I couldn’t get Buddypress to upgrade without breaking too much. Anyway, I noticed a bug which causes profile fields not to be saved during registration. Editing a profile afterwards does work.
There are more topic on the forum, but no answers (eg. http://buddypress.org/forums/topic/additional-profile-field-data-not-saved-during-signup). Maybe it has something to do with localization (I use the Dutch version) since it doesn’t seem to happen to other people around here.
I dug into the Buddypress code and noticed this particular line in bp-xprofile-signup.php:
add_action( ‘wpmu_activate_user’, ‘xprofile_on_activate_user’, 1, 3 );
The xprofile_on_activate_user function is called on activating an account. This function saves the profile fields which are read from the wpmu user meta table (why aren’t they saved right away on registration?). The wpmu_activate_user action is executed in wpmu-functions.php (do_action(‘wpmu_activate_user’, $user_id, $password, $meta). When I add ‘xprofile_on_activate_user($user_id, $password, $meta)’ manually in that file (just for testing purposes) I get an error this function is undefined. I guess that might cause the troubles?
How can I best fix this or what is causing this?
- The topic ‘Profile fields empty on registration’ is closed to new replies.