[Resolved] Odd Buddypress Problem with new signups?
-
WP 3.9 BP 2.0.1
I have a custom registration form. It works, as it makes a new user that can login. It doesn’t work as when said user tries to login in for the first few times, it shows a white screen. After a few refreshes, everything works as intended. I suspect the problem is from buddypress, as I used buddypress default data and tried to log into one of the fake accounts and it worked fine. It only seems to be with accounts that havent yet had any BP activity. On top of that, this occurs after clicking activate in the activation email.
function create_user_from_registrant(){ $user_name = $_POST['first_name']."_".$_POST['last_name']; $user_email = $_POST['email']; $user_id = username_exists( $user_name ); if ( !$user_id and email_exists($user_email) == false ) { $random_password = wp_generate_password( $length=12, $include_standard_special_chars=false ); //$user_id = wp_create_user( $user_name, $random_password, $user_email ); $user_id = bp_core_signup_user( $user_name, $random_password, $user_email, '' ); } else { $random_password = __('User already exists. Password inherited.'); } mail($user_email,"Five Star Connect Beta Credentials","Thank you for registering for The Five Star Connect Beta. Your username is $user_name. Your temporary password is $random_password <a href='http://thefivestar.com/fsc-beta/members'>Click here to log-in.</a>"); echo $user_id; die(); }
Above is my registration code. I have also tried by using wordpress’s registration function as opposed to the bp_core_signup_user function.
Please halp 🙁
- The topic ‘[Resolved] Odd Buddypress Problem with new signups?’ is closed to new replies.