Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\render_profiler\RenderProfilerLogger::build_truncated_string()

Created on 31 August 2023, about 1 year ago
Updated 5 September 2023, about 1 year ago

Problem/Motivation

Errors on PHP 8.1

Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\render_profiler\RenderProfilerLogger::build_truncated_string() (line 147 of modules/contrib/render_profiler/src/RenderProfilerLogger.php).
Drupal\render_profiler\RenderProfilerLogger::build_truncated_string(NULL) (Line: 101)
Drupal\render_profiler\RenderProfilerLogger::buildResultsTable() (Line: 206)
Drupal\render_profiler\RenderProfilerLogger::build_log()
call_user_func_array(Array, Array) (Line: 111)

Steps to reproduce

Profiled /en/user/1?RENDER_PROFILER_START=12 on an Umami site

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇺🇸United States mglaman WI, USA

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

Comments & Activities

Production build 0.71.5 2024