InvalidArgumentException: The entity cannot be translated since it is language neutral (und). in Drupal\Core\Entity\ContentEntityBase->addTranslation()

Created on 12 November 2019, almost 5 years ago
Updated 13 January 2024, 9 months ago

Hi,

Content moderation is enabled to one of the content type. When i create a new content and translate it i get the following error :
InvalidArgumentException: The entity cannot be translated since it is language neutral (und). in Drupal\Core\Entity\ContentEntityBase->addTranslation()

I tried applying the patches in https://www.drupal.org/project/drupal/issues/2995655 , https://www.drupal.org/project/drupal/issues/2946402 , https://www.drupal.org/project/entity_reference_revisions/issues/3024588 🐛 InvalidArgumentException: Invalid translation language (und) specified. in Drupal\Core\Entity\ContentEntityBase->addTranslation() (line 953 of core/lib/Drupal/Core/Entity/ContentEntityBase.php). Needs review - comment#6

But it is not working.

When i narrow down the issue, i found that only one field is causing this issue. Image field added in paragraph which is referred to this content type is causing this issue. When i deleted that field, the issue gets resolved.
Can someone help me out if any loop hole is there in creating the field in paragraph type?

Thank you in advance!

🐛 Bug report
Status

Closed: duplicate

Version

1.6

Component

Code

Created by

🇮🇳India krith_18

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