Closed (fixed)
Project:
StoryChief
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Mar 2023 at 12:27 UTC
Updated:
7 Mar 2025 at 08:39 UTC
Jump to comment: Most recent
When publishing a translation to a Drupal instance, the following error appears:
Drupal\Core\Entity\EntityStorageException: Invalid translation language (und) specified. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 815 of /var/web/vd22308/deploy/releases/20230315083834/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
The error is caused by the content_translation_source field not being set. This usually happens in \Drupal\content_translation\Controller\ContentTranslationController::prepareTranslation(), which is only called when translating content through the UI.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dieterholvoet commentedComment #4
dieterholvoet commentedI was able to fix #3355307: Invalid translation language (fr-BE) specified as well by moving the new getTranslation method to
StoryChiefRemoteCallEventSubscriberBaseand also using it inStoryChiefRemoteCallUpdateEventSubscriber.Comment #5
dieterholvoet commentedComment #6
dieterholvoet commentedComment #7
dieterholvoet commentedComment #8
gregory claeyssens commentedComment #9
gregory claeyssens commented