Error: Cannot access offset of type string on string

Created on 5 December 2023, 7 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.69.0 2024