strtr(): Passing null to parameter #1 ($string) of type string is deprecated in media_theme_suggestions_media()

Created on 19 October 2023, over 1 year ago

Problem/Motivation

When using PHP 8.1 the following warnings are displayed/logged.

Deprecated function: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in node_theme_suggestions_node() (line 462 of /var/www/html/core/modules/node/node.module)

Steps to reproduce

open status report for a sub site in a multisite project

Proposed resolution

Prevent passing in NULL by converting it to string.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

9.5

Component
Node system 

Last updated about 3 hours ago

No maintainer
Created by

🇧🇾Belarus postyly Minsk

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

Comments & Activities

Production build 0.71.5 2024