Field status is unknown

Created on 3 April 2025, 29 days ago

Problem/Motivation

The following error is triggered when the TMGMT module tries to publish an ECK entity without status field in Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource::doSaveTranslations():

InvalidArgumentException: Field status is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /[..]/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Proposed resolution

Check for the presence of a published key in the setPublished() / setUnpublished() methods.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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