Fix "Deprecated function: mb_strtolower(): Passing null to parameter #1" when using PHP 8

Created on 10 May 2024, 7 months ago
Updated 20 June 2024, 5 months ago

Problem/Motivation

When using this module with Drupal 10 and PHP 8 we get a deprecated error on the node creation form with a virtual event associated to this entity.

Deprecated function: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Core\Config\Entity\Query\Condition->compile() (line 39 of core/lib/Drupal/Core/Config/Entity/Query/Condition.php).

Steps to reproduce

Create or edit a virtual event.

Proposed resolution

Test if variables are empty.

Remaining tasks

Code to fix

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France tostinni

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