The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated

Created on 31 January 2025, 2 months ago

Problem/Motivation

When I try to save my WYSIWYG text format, I get this error:
The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated. in Drupal\Core\Config\Plugin\Validation\Constraint\LangcodeRequiredIfTranslatableValuesConstraintValidator->validate()

The mentions tab doesn't even need to have to be enabled, simply saving throws this error.

  • Drupal 10.3.1
  • Module version: 3.0.0-beta2

Weird thing: when I set up the module via simplytest.me, it works like a charm.

Steps to reproduce

  1. Install module
  2. Edit WYSIWYG text format where ckeditor is enabled
  3. Hit save
  4. See error
  5. Try again and add the mentions configuration for eg. User entities
  6. Hit save again
  7. See same error

Proposed resolution

Make it work.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium blacksnipe

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024