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

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

dhirendra.mishra created an issue. See original summary.

dhirendra.mishra’s picture

Issue tags: +image, +image formatters
cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -image, -image formatters +Needs steps to reproduce

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

simonbaese’s picture

I 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

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.