Skip to:

Profile fields empty on registration

  • wekko


    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. 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • To be honest you aren’t going to get much/any support based on bugs in previous versions of BuddyPress as we may have fixed them in the more recent versions.



    Well, that makes sense. Still, if it’s a bug and it’s fixed in newer versions…someone should know about it right? :)



    You can search here for answers :



    I found the answer. It’s not Buddypress, it’s WordPress MU. See: . Apparently, wp-activate.php doesn’t load the Buddypress login including the hooks. Weird thing it doesn’t happen to everyone..

    John James Jacoby


    Newer versions of BP along with newer templates and MU have solved this by moving those hooks and actions into the template, and BP hijacks the registration before it happens.

    It’s happening because of an outdated theme arrangement. I’m going through something similar also at the moment and will be tracking this down shortly.

    @wekko, the reason those fields aren’t entered right away is because a registered user isn’t an actual activated user yet. They need to click the link or be activated by the site admin in order to actually get entered into the user tables. In either case, that xprofile data is moved into the xprofile tables when the activation occurs, not when they register.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Profile fields empty on registration’ is closed to new replies.
Skip to toolbar