Problem/Motivation
Notice: Trying to access array offset on value of type null in /mnt/www/html/veoliad801dev4/docroot/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php on line 210
Notice: Trying to access array offset on value of type null in /mnt/www/html/veoliad801dev4/docroot/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php on line 167
Steps to reproduce
Go to url /admin/structure/media/manage/image/display
and checkout the two notices
Proposed resolution
Apply the required patch
Comments
Comment #2
dhirendra.mishra commentedComment #3
cilefen commentedIs this a duplicate of #3291622: Formatter 'URL to image' from ImageUrlFormatter shows PHP warning due to the newly introduced loading attribute on image field?
We need steps to reproduce on a clean Drupal install if not.
Comment #5
simonbaeseI am getting this error with Drupal 9.4.8 and the following steps:
- create new media type
- add image field to media type
- go to manage display and select "URL to image" as image format
- try to save the form
Comment #7
quietone commentedI tested this on 11.x HEAD today, using the steps in #5 and was not able to reproduce the problem.
I agree with @cilefen, that this is a duplicate of #3291622: Formatter 'URL to image' from ImageUrlFormatter shows PHP warning due to the newly introduced loading attribute on image field