Cannot translate paragraph entity (in entity_embed in ckeditor5)

Created on 16 April 2025, 8 days ago

Problem/Motivation

I'm trying to Edit a paragraph type and end up getting an error

Call to a member function isTranslatable() on null in Drupal\content_translation\ContentTranslationMetadataWrapper->setFieldOnlyIfTranslatable()

There is a call to setAuthor in \Drupal\content_translation\ContentTranslationHandler::entityFormEntityBuild, which fails since there is neither a 'uid' nor 'content_translation_uid' field in the Paragraph entity type.

Steps to reproduce

* Enable content translation for a paragraph type
* add embed button for Entity and the Paragraph type
* enable the button in ckeditor5
* Use the button to embed paragraph
* add a translation of the embedding content
* open the entity embed and try translating the paragraph
* Note the error message in the browser console

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.19

Component

Code

Created by

miiimooo Europe

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

Comments & Activities

Production build 0.71.5 2024