Problem/Motivation

I get this error message under conditions

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

Comments

miiimooo created an issue. See original summary.

miiimooo’s picture

Status: Active » Needs review
StatusFileSize
new461 bytes

Attached find a minimal patch

keshavv’s picture

StatusFileSize
new480 bytes

I think also need to add !empty() check to check the null value.

  • 1155cd3e committed on 1.0.x
    Issue #3379944 by miiimooo, keshavv: cannot pass null to strlen()
    
les lim’s picture

Status: Needs review » Fixed

Thanks! I've opted instead to prevent the function from being invoked for empty values.

  • 6b57a105 committed on 1.0.x
    Issue #3379944: Ensure proper number of table cells in row
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.