[Plugin: OpenID] wp_insert_user return error
-
I encounter “Catchable fatal error: Object of class WP_Error could not be converted to string in /srv/www/wordpress/wp-includes/formatting.php on line 2773” when register a new account.
after a little dig, I figured out the problem where wp_insert_user return WP_Error
object(WP_Error)#94 (2) {
[“errors”]=>
array(1) {
[“existing_user_email”]=>
array(1) {
[0]=>
string(41) “This email address is already registered.”
}
}
[“error_data”]=>
array(0) {
}
}The type of return value of wp_insert_user should be checked against integer.
- The topic ‘[Plugin: OpenID] wp_insert_user return error’ is closed to new replies.