is_file(): Passing null to parameter #1 ($filename) of type string is deprecated in modules/contrib/image_resize_filter/image_resize_filter.module

Created on 18 July 2023, over 1 year ago
Updated 3 January 2024, 11 months ago

Problem/Motivation

After upgrading the PHP version to 8.1 and the module to 8.x-1.1 version I have been getting these two errors for deprecated functions:
Deprecated function: is_file(): Passing null to parameter #1 ($filename) of type string is deprecated in image_resize_filter_get_images() (line 180 of modules/contrib/image_resize_filter/image_resize_filter.module).

Deprecated function: is_file(): Passing null to parameter #1 ($filename) of type string is deprecated in image_resize_filter_delete_temp_file() (line 275 of modules/contrib/image_resize_filter/image_resize_filter.module).

Steps to reproduce

Upgrade PHP version to 8.1 then will you be able to produce the error

Proposed resolution

Check if the value is not null first.

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ฏ๐Ÿ‡ดJordan n.ghunaim Amman - Jordan

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

Comments & Activities

Production build 0.71.5 2024