• Resolved MagicFire

    (@magicfire)


    Hi,

    I have a problem with WP and BP (v. 1.5.2). I found out, that when users want to register, after the process, their password isn not saved to the database. Everythink is working, the activation code is send in email and in DB appears their login and nickname, but the password is missing. I find out, that there is this function in registration process:

    $user_id = wp_insert_user( array(
    			'user_login' => $user_login,
    			'user_pass' => $user_password,
    			'display_name' => sanitize_title( $user_login ),
    			'user_email' => $user_email
    		) );
    
    		if ( empty( $user_id ) ) {
    			$errors->add( 'registerfail', sprintf( __('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !', 'buddypress' ), get_option( 'admin_email' ) ) );
    			return $errors;
    		}

    I don’t see there any mistake. It doesn’t thors any error. And ID is correctly assigned, because the user state is changed to 2 (means needed to active).
    I’ve spent whole day looking, may be I missed something.

    Thanks for the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MagicFire

    (@magicfire)

    I find out,that the problem was caused by this:

    do_action('user_register', $user_id);

    to which was connected following plugins:

    • Alo-Easymail
    • WP-admin/user.php
    • wp-admin\includes\template.php
    • buddypress\bp-blogs\bp-blogs-functions.php
    • buddypress\bp-members\bp-members-signup.php
    • buddypress-auto-group-join\php\bp-auto-group-join-init.php

    Even if I commented add_action( 'user_register', name_of_fcn)
    in each of this files, still the password won’t show in DB. Only if I comemented the do_action('user_register', $user_id); in the wp-includes/user.php , now the password appears in DB. Are there any others functions (exept that above) that are conected to this hook? Because even if I disabled them, the hook still causes me trouble.

    Thanks

    Thread Starter MagicFire

    (@magicfire)

    OK, classic problem, plugin from the 3rd side.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP with BuddyPress user registration problem’ is closed to new replies.