amnnms
Forum Replies Created
-
// in file /wp-content/plugins/miniorange-login-openid/mo-openid-social-login-functions.php in function mo_create_new_user we get data $user_val for non-latin names: Array ( [username] => _ [user_email] => [user_full_name] => Анастасия О [first_name] => Анастасия [last_name] => О [user_url] => [user_picture] => https://sun9-50.userapi.com/c855020/v855020743/178b63/ib51YOicL-c.jpg?ava=1 [social_app_name] => vkontakte [social_user_id] => 570696924 )
username always _
and user_email frequently can be not set by user
then error occursFIX: insert in /wp-content/plugins/miniorange-login-openid/mo-openid-social-login-functions.php in line ~307 after code $user_email = sanitize_email($email);
if($appname=='vkontakte'){ if(empty($email)){ $email='id'.$social_user_id.'@vkontakte.com'; $user_email = sanitize_email($email); } }
I suppose, this is because in wordpress user email stored as [email protected] when no email submitted. When user has cyrillic name like “Анастасия Иванова” this field stored as [email protected],
when full name is “Anastasia Ivanova” this field stored as [email protected]I have this problem in version 7.3.3.
On vk.com user without email set in profile, cyrillic name, profile id in numbers like vk.com/id12345, not vk.com/usernameWP_Error Object ([errors] => Array([existing_user_email] => Array ([0] => Извините, этот адрес email уже используется! )) [error_data] => Array())
Error Code 5: There was an error in registration. Please contact your administrator.
I suppose, this is because in wordpress user email stored as [email protected] when no email submitted. When user has cyrillic name like “Анастасия Иванова” this field stored as [email protected],
when full name is “Anastasia Ivanova” this field stored as [email protected]