Problem/Motivation
After upgrading Drupal core from 11.2.8 to 11.3.2 and updating PHP from 8.3 to 8.4, I started seeing these warnings every time I save a node with the metatag async widget when I have not overwritten any metatags.
Warning: Undefined array key "value" in
Drupal\metatag_async_widget\Plugin\Field\FieldWidget\AsyncMetatagFirehose->massageFormValues() (line 253 of modules/contrib/metatag_async_widget/src/Plugin/Field/FieldWidget/AsyncMetatagFirehose.php). Steps to reproduce
- Configure a content type to use the metatag async widget
- Create a node of that type
- Do not use the widget to override any metatags
- Save the node
- Get the warning
Proposed resolution
I will submit a patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | metatag_async_widget-3569293-undefined-warning-2.patch | 676 bytes | banoodle |
Issue fork metatag_async_widget-3569293
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
banoodle commentedAttaching patch.
Comment #3
d.fisher commentedThank you to @banoodle for the report and the fix. I was also seeing this issue after upgrading Drupal core from 11.2.8 to 11.3.2 and updating PHP from 8.3 to 8.4 and can confirm that the patch resolves the issue. Marking as RTBC.
Comment #6
chr.fritschThx