Deprecated function: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\tamper\Plugin\Tamper\ConvertBoolean->tamper() (line 166 of /var/www/html/web/modules/contrib/tamper/src/Plugin/Tamper/ConvertBoolean.php)

Created on 24 January 2025, 2 months ago

Problem/Motivation

I looked thru the current issue queue and couldnt seem to find this particular bug. Hope I didnt accidentally miss it.

Using Feeds and Feeds Tamper modules in Drupal 10.4 and PHP 8.3, importing a value using the Convert to Boolean plugin in Drupal 10.4, php 8.3 caused this error to arise. Seems its a simple php deprecation issue with mb_strtolower.

Steps to reproduce

Use the above config and import a value with a blank source of "true" and a tamper Convert to Boolean plugin to convert "true" to TRUE.

Proposed resolution

Attached patch.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States peachez

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

Comments & Activities

Production build 0.71.5 2024