Problem/Motivation

Getting the below error while accessing /admin/structure/types/manage/article/form-display
Cannot unpack array with string keys in Drupal\yoast_seo\Plugin\Field\FieldWidget\YoastSeoWidget->Drupal\yoast_seo\Plugin\Field\FieldWidget\{closure}() (line 246 of modules/contrib/yoast_seo/src/Plugin/Field/FieldWidget/YoastSeoWidget.php).

Steps to reproduce

  1. Go to /admin/structure/types/manage/article/form-display
  2. Above error is encountered.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork yoast_seo-3381645

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

AnjaliPrasannan created an issue. See original summary.

anjaliprasannan’s picture

Issue summary: View changes

anjaliprasannan’s picture

StatusFileSize
new1009 bytes

Adding patch that fixed the issue.

anjaliprasannan’s picture

StatusFileSize
new962 bytes
anjaliprasannan’s picture

StatusFileSize
new954 bytes
undersound3’s picture

Thanks for the patch!
Works here on drupal 9.5.11 and yoast_seo 8.x-2.0-alpha10

anjaliprasannan’s picture

Status: Active » Needs review
lavanyatalwar’s picture

Assigned: Unassigned » lavanyatalwar

Updating MR for this patch.

lavanyatalwar’s picture

Assigned: lavanyatalwar » Unassigned
kingdutch’s picture

Status: Needs review » Closed (won't fix)
Issue tags: -Real-time SEO yoast_seo

Sorry for the sloppiness in using language features without declaring a PHP language version. The bit of code relied on a feature that was introduced in PHP 8.1.

As the only supported version of Drupal (10) requires at least PHP 8.1, where this operator is supported, I'm going to close this issue as "Won't fix".