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

  1. Configure a content type to use the metatag async widget
  2. Create a node of that type
  3. Do not use the widget to override any metatags
  4. Save the node
  5. Get the warning

Proposed resolution

I will submit a patch shortly.

Command icon 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

banoodle created an issue. See original summary.

banoodle’s picture

Status: Active » Needs review
StatusFileSize
new676 bytes

Attaching patch.

d.fisher’s picture

Status: Needs review » Reviewed & tested by the community

Thank 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.

chr.fritsch made their first commit to this issue’s fork.

chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Thx

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.