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

Created on 19 October 2023, 11 months 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

Needs work

Version

11.0 πŸ”₯

Component
Node systemΒ  β†’

Last updated 1 minute ago

No maintainer
Created by

πŸ‡§πŸ‡ΎBelarus postyly Minsk

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