EntityReferenceFormatterBase::getEntitiesToView() must implement interface of EntityReferenceFieldItemListInterface, instance of AcquiaContentHubModerationStateFieldItemList given

Created on 26 August 2021, over 3 years ago
Updated 19 January 2023, about 2 years ago

When I log in as an Approver Role, our dashboard got an error but I don't know how or where exactly it causes the error. However, when I logged in as different Role, it works perfectly fine

This is the error...

TypeError: Argument 1 passed to Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase::getEntitiesToView() must implement interface Drupal\Core\Field\EntityReferenceFieldItemListInterface, instance of Drupal\acquia_contenthub\Plugin\Field\AcquiaContentHubModerationStateFieldItemList given, called in /mnt/www/html/toawebdocsstg/docroot/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php on line 62 in Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase->getEntitiesToView() (line 42 of /mnt/www/html/toawebdocsstg/docroot/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php)

Hoping someone could help

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024