Undefined array key "..." DynamicEntityReferenceItem.php:759

Created on 15 January 2024, 5 months ago
Updated 14 February 2024, 4 months ago

Problem/Motivation

We're seeing that warning during cache refresh and found, that $settings don't always have all the $target_type_ids that come back from static::getTargetTypes($settings).

This also outputs a second warning Trying to access array offset on value of type null DynamicEntityReferenceItem.php:759, which is a follow-up.

Proposed resolution

This can be easily resolved by defaulting back to an empty array, which would then behave as if that field has no target bundles.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024