Deprecated function: str_replace(): Passing null to parameter #3

Created on 13 March 2025, about 2 months ago

Problem/Motivation

Getting this error in the logs:

Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in datetimehideseconds_preprocess_datetime_form() (line 54 of /var/www/html/web/modules/contrib/datetimehideseconds/datetimehideseconds.module) #0 /var/www/html/web/core/includes/bootstrap.inc(108): _drupal_error_handler_real(8192, 'str_replace(): ...', '/var/www/html/w...', 54) #1 [internal function]: _drupal_error_handler(8192, 'str_replace(): ...', '/var/www/html/w...', 54) #2 /var/www/html/web/modules/contrib/datetimehideseconds/datetimehideseconds.module(54): str_replace('hh:mm:ss', 'hh:mm', NULL) #3 [internal function]: datetimehideseconds_preprocess_datetime_form(Array, 'datetime_form', Array) #4 /var/www/html/web/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array('datetimehidesec...', Array) #5

Investigating.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mably

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

Comments & Activities

Production build 0.71.5 2024