deprecated: trim(): passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/web/core/modules/views/src/plugin/views/display/displaypluginbase.php on line 1030

Created on 30 January 2024, 11 months ago
Updated 31 January 2024, 11 months ago

Problem/Motivation

After upgrading the PHP version to 8.1.x and Drupal core version to 10.1.x the message trim(): passing null to parameter #1 ($string) of type string is deprecated appears.

Steps to reproduce

On a Drupal project with core version 10.1.8 and PHP version 8.1.27 try to edit the Media library view and then the warning message is displayed.

Proposed resolution

I will add a small patch as a temporary solution with will resolve this warning in a comment below.

🐛 Bug report
Status

Postponed: needs info

Version

10.1

Component
Views 

Last updated 1 day ago

Created by

🇧🇬Bulgaria rastepanyan

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024