Fatal error when accessing entity that has an instance of an exlclude shipping method field attached.

Created on 11 March 2025, about 1 month ago

Problem/Motivation

TypeError: Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase::getEntitiesToView(): Argument #1 ($items) must be of type Drupal\Core\Field\EntityReferenceFieldItemListInterface, Drupal\Core\Field\FieldItemList given, called in /var/www/html/web/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php on line 63 in Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase->getEntitiesToView() (line 42 of core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php).

Steps to reproduce

Proposed resolution

Fix the fatal error.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024