DatafieldWidget error

Created on 21 February 2025, about 1 month ago

Hi !
i'm updating drupal/datafield 2.0.8 to 2.0.10 and now when i'd like to save a node translation on drupal 10.4.3 i have the following error :

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 258 of modules/contrib/datafield/src/Plugin/Field/FieldWidget/Base.php).
Drupal\datafield\Plugin\Field\FieldWidget\Base->massageFormValues() (Line: 505)
Drupal\Core\Field\WidgetBase->extractFormValues() (Line: 244)
Drupal\Core\Entity\Entity\EntityFormDisplay->extractFormValues() (Line: 334)
Drupal\Core\Entity\ContentEntityForm->copyFormValuesToEntity() (Line: 301)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France allan.ordogh

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

Comments & Activities

Production build 0.71.5 2024