strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 26 February 2023, over 1 year ago

Problem/Motivation

After updating from php 5.6 to php8.1 I am getting this warning
strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in views_timelinejs_plugin_style_timelinejs->build_date() (line 474 of .../modules/contrib/views_timelinejs/views_timelinejs_plugin_style_timelinejs.inc).

Steps to reproduce

I am not sure why it is sending an empty field to this function but when it does the warning appears/

Proposed resolution

Wrapping the try/catch in an if statement fixes the issue.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇨🇦Canada circuscowboy

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

Comments & Activities

Production build 0.71.5 2024