TypeError: array_diff(): Argument #1 ($array) must be of type array, null given in array_diff()

Created on 21 March 2024, 8 months ago

When creating a media Image in the Media content overview with focal point enabled, I get the following error:

TypeError: array_diff(): Argument #1 ($array) must be of type array, null given in array_diff() (line 242 of /data/sites/web/opendevbe/subsites/catalisti.opendev.be/releases/20240321131456/www/modules/contrib/media_library_media_modify/media_library_media_modify.module).

I fixed this by checking if the class array on the $preview_link_attributes exists.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium kensae

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024