Undefined offset error in FileWidget and ImageWidget

Created on 16 July 2018, over 6 years ago
Updated 21 August 2024, 3 months ago

This is re-reporting issue 2843977 which was closed as a duplicate (mistakenly, I suspect) of issue 2908866 (which were different errors).

When saving a condition the following warnings/notices are reported:

Notice: Undefined offset: 0 in Drupal\file\Plugin\Field\FieldWidget\FileWidget->formMultipleElements() (line 196 of core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php)
Notice: Undefined offset: 0 in Drupal\image\Plugin\Field\FieldWidget\ImageWidget->formMultipleElements() (line 123 of core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php)

Note that these errors are specifically File and Image widget. I have an image field on the node content type, but it's not part of any of the conditions that I'm setting. The conditions are all hide/show of text field selectors and numeric fields based on a 'type' selector.

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andy_read

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024