Error: Cannot access offset of type string on string

Created on 5 December 2023, 12 months ago

Problem/Motivation

When updating multiple nodes I get an error sometimes:
[error] TypeError: Cannot access offset of type string on string in Drupal\menu_to_taxonomy_assign\AutoAssignedTermReferenceItemList->Drupal\menu_to_taxonomy_assign\{closure}() (line 59 of (...)/menu_to_taxonomy/menu_to_taxonomy_assign/src/AutoAssignedTermReferenceItemList.php)

Proposed resolution

There's a wrong array build. Auto-assign term array should contain a target_id key

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇵🇹Portugal rutiolma

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

Comments & Activities

Production build 0.71.5 2024