must be of type array, null given in array_keys DynamicEntityReferenceItem.php

Created on 21 November 2024, 1 day ago

Problem/Motivation

TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 664 of /var/www/html/html/modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldType/DynamicEntityReferenceItem.php).

#0 /var/www/html/html/modules/contrib/dynamic_entity_reference/src/Plugin/Field/FieldType/DynamicEntityReferenceItem.php(664): array_keys()
#1 /var/www/html/html/modules/contrib/dynamic_entity_reference/dynamic_entity_reference.views.inc(165): Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem::getTargetTypes()
#2 /var/www/html/html/core/modules/views/src/ViewsData.php(228): dynamic_entity_reference_views_data()

Steps to reproduce

Rebuild cache in an interface language other than the default language.

Proposed resolution

Create a patch

Remaining tasks

See proposed solution

User interface changes

N/A

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Active

Version

3.2

Component

Code

Created by

🇨🇦Canada joseph.olstad

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

Comments & Activities

Production build 0.71.5 2024