Enabling filter on Drupal 10.3 give fatal error.

Created on 6 August 2024, 9 months ago
Updated 7 August 2024, 9 months ago

Problem/Motivation

When enabling filter "Replaces global and entity tokens with their values" for text format and saving the form its giving error:
Symfony\Component\Validator\Exception\LogicException: The LangcodeRequiredIfTranslatableValues constraint can only operate on the root object being validated. in Drupal\Core\Config\Plugin\Validation\Constraint\LangcodeRequiredIfTranslatableValuesConstraintValidator->validate() (line 26 of core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php).

Steps to reproduce

  • Setup Drupal project setup with 10.3
  • Edit any text format and enable filter "Replaces global and entity tokens with their values"
  • Hit the save text format button, an you will see this error.
πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States imran1217

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

Comments & Activities

  • Issue created by @imran1217
  • Status changed to Postponed: needs info 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia darvanen Sydney, Australia

    Thanks for this report @imran1217, I followed the steps to repeat on a fresh install of Drupal 10.3 (standard profile) and could not reproduce the problem. I'm afraid this will need a little more detail.

  • πŸ‡ΊπŸ‡ΈUnited States imran1217

    My bad, it was due to ckeditor_readmore β†’ . This can be close I will create issue in that module issue queue. Thanks for quick check.

  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia darvanen Sydney, Australia

    All good mate, glad you managed to track it down πŸ˜€

Production build 0.71.5 2024