Undefined method MessageTemplate::isDefaultRevision()

Created on 5 April 2020, about 4 years ago
Updated 31 January 2024, 5 months ago

When trying to display a template message as a rendered entity, I got the following error:

Drupal\Core\Entity\EntityViewBuilder->getBuildDefaults(Object, 'default') (Line: 168)
Drupal\Core\Entity\EntityViewBuilder->viewMultiple(Array, 'default', 'fr') (Line: 134)
Drupal\Core\Entity\EntityViewBuilder->view(Object, 'default', 'fr') (Line: 19)
Drupal\message\MessageViewBuilder->view(Object, 'default', 'fr') (Line: 198)
Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceEntityFormatter->viewElements(Object, 'fr') (Line: 89)
Drupal\Core\Field\FormatterBase->view(Object, 'fr') (Line: 76)
Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase->view(Object, 'fr') (Line: 263)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Array) (Line: 351)
Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'teaser') (Line: 24)
Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'teaser') (Line: 293)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 250)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DuneBL

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.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    @DuneBL,

    I am confused by this error. MessageTemplates are not ContentEntities, so it would not have a isDefaultRevision() method. Are you able to post the view here?

  • Status changed to Closed: cannot reproduce 5 months ago
  • πŸ‡§πŸ‡ͺBelgium DuneBL

    Sorry, I can't find the view... It also confusing me. I close the bug.

Production build 0.69.0 2024