Error when using content moderation.

Created on 20 May 2021, over 3 years ago
Updated 23 February 2023, almost 2 years ago

Problem/Motivation

Module does not provide solution for content moderation.
TypeError: Argument 1 passed to Drupal\inline_translation\EntityOperations::addTranslatabilityClue() must be of the type array, null given, called in /var/www/drupal9/structura/web/modules/contrib/inline_translation/src/EntityOperations.php on line 321 in Drupal\inline_translation\EntityOperations->addTranslatabilityClue() (line 526 of /var/www/drupal9/structura/web/modules/contrib/inline_translation/src/EntityOperations.php)

Steps to reproduce

When content moderation is enabled for a content type this wil appear as a checkbox beneath a content type on following page: /admin/config/regional/content-language
When you want to disable the checkbox and save it it automatically gets back enabled and when rendering de node add/edit page it throws above error as it cannot find the widget.

Proposed resolution

simple one if OK?
if ($field_name === "moderation_state"){
return
}

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium ghuygens

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.

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    I've tried to reproduce the error and I can't. I installed standard, enabled inline_translation and content moderation and set up the article content type for both and it works as expected.

Production build 0.71.5 2024