Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\change_pwd_page\Form\ChangePasswordForm->validateForm() (line 148 of modules/contrib/change_pwd_page/src/Form/ChangePasswordForm.php)

Created on 8 September 2022, almost 2 years ago
Updated 17 June 2024, 11 days ago

Problem/Motivation

Deprecated function trim() in PHP8.1 environment.

Steps to reproduce

1. New Drupal website with php 8.1 and 9.4.5
2. Enable the module Password Separate Form.
3. Pick any user and update the password at the separate form without input current password with administrator role.
4. Warning message shows

Proposed resolution

Prevent from NULL as the input for trim function.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇹🇼Taiwan cobenash Taipei

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024