Can not save translated nodes

Created on 12 July 2023, over 1 year ago
Updated 13 September 2024, 2 months ago

Unable to save translations on pages

I am getting this error :

Drupal\Core\Entity\EntityStorageException: Invalid translation language (fr) specified. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

InvalidArgumentException: Invalid translation language (fr) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 874 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Steps to reproduce:

  1. Open any page , edit anode , Go to translate , try adding translation
  2. Add any language , be it fr(in my case) , default language is en. After making changes to the "/fr/node/1201/translations/add/en/fr" , while trying to save changes .
  3. Getting this error "Drupal\Core\Entity\EntityStorageException: Invalid translation language (fr) specified. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)."
  1. InvalidArgumentException: Invalid translation language (fr) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 874 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

If anyone facing similar issues or have any solution , Please help here.

🐛 Bug report
Status

Closed: cannot reproduce

Version

11.0 🔥

Component
Entity 

Last updated about 11 hours ago

Created by

🇮🇳India Swayanka

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