Throws when creating new version: InvalidArgumentException: Invalid translation language (es) specified.

Created on 13 December 2023, about 1 year ago

While working with https://www.drupal.org/project/content_moderation β†’ we encountered an error: InvalidArgumentException: Invalid translation language (es) specified. in Drupal\Core\Entity\ContentEntityBase->addTranslation() (line 958 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).

The site has three languages EN, ES, PT

1. Create an EN node and keep it as Draft (Unpublished)
2. Create its ES translation and keep it as Draft (Unpublished)
3. Create its PT translation and keep it as Draft (Unpublished)
4. Publish its source language (EN)
5. Publish its ES translation
5. Delete PT translation
6. Edit the ES translation and create a new Draft (Unpublished) version
7. Added PT translation
At this point we can see the error.

We believe this is caused by https://www.drupal.org/project/drupal/issues/2860097 β†’ .

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
Content translationΒ  β†’

Last updated 2 days ago

No maintainer
Created by

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

Comments & Activities

Production build 0.71.5 2024