trim(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 18 September 2024, 8 months ago

1. The administrator does not enter an email address when creating an account.
2. After logging in with the account, enter the user editing page
3. Click the "Reset your password." button
4. Submit the form.
At this time, an error message will be prompted:
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\user\Form\UserPasswordForm->validateForm() (line 176 of core/modules/user/src/Form/UserPasswordForm.php).
The username or email address is invalid.

๐Ÿ› Bug report
Status

Closed: duplicate

Version

10.3 โœจ

Component
User systemย  โ†’

Last updated 5 days ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024