Deprecated function: strlen(): Passing null to parameter #1 ($string)

Created on 20 April 2023, about 1 year ago
Updated 27 April 2023, about 1 year ago

Problem/Motivation

Getting below error on PHP 8.2 with Drupal 10.0.7

Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in username_policy_form_alter() (line 58 of modules/contrib/username_policy/username_policy.module).

Steps to reproduce

  1. Install module
  2. Add the token value for the Username
  3. Create new user, without adding the mail.
  4. You can able to see the error.

Proposed resolution

Fix the issue by creating the patch.

Remaining tasks

Testing.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024