Error: Call to a member function getTargetEntityTypeId() on null

Created on 23 January 2025, 2 months ago

Problem/Motivation

After recent change in 🐛 Translated entity doesn't show up for the referenced item Needs work there is a fatal error

Error: Call to a member function getTargetEntityTypeId() on null in Drupal\entity_reference_display\Plugin\Field\FieldFormatter\EntityReferenceRevisionsDisplayFormatter->getDisplayFields() (line 136 of modules/contrib/entity_reference_display/src/Plugin/Field/FieldFormatter/EntityReferenceDisplayFormatterTrait.php).

when using the entity reference display field in paragraphs.

Steps to reproduce

Create a paragraph with node reference and add the view mode selector field. Use in the manage display the formatter entity_reference_revisions_entity_view

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

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