Skip to content

Update user password exception #3374

@Santana1053

Description

@Santana1053

I can update any part of a user except the password. when I try to update the user_pass i get the following error

PHP Fatal error:  Uncaught exception 'phpmailerException' with message 'Invalid address: wordpress@' in /wp-includes/class-phpmailer.php:946
Stack trace:
#0 /wp-includes/pluggable.php(352): PHPMailer->setFrom('wordpress@', 'WordPress')
#1 /wp-includes/user.php(1841): wp_mail('contact@maudien...', '[Ackerman Plumb...', 'Hi maudience,??...', '')
#2 phar:///usr/local/bin/wp/php/WP_CLI/CommandWithDBObject.php(73): wp_update_user(Array)
#3 phar:///usr/local/bin/wp/php/commands/user.php(403): WP_CLI\CommandWithDBObject->_update(Array, Array, 'wp_update_user')
#4 [internal function]: User_Command->update(Array, Array)
#5 phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/CommandFactory.php(67): call_user_func(Array, Array, Array)
#6 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#7 phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php(372): call in /wp-includes/class-phpmailer.php on line 946

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions