LogicException: Two #config_targets both target "message" in the "system.maintenance" config

Created on 18 June 2024, 5 months ago

Problem/Motivation

The module throws the following error:
LogicException: Two #config_targets both target "message" in the "system.maintenance" config: `$form['maintenance_mode_message']` and `$form['maintenance_mode_message']['value']`
after updating to Drupal Core 10.2.x.

It is caused by Drupal Core 10.2.x using #config_target (see https://www.drupal.org/project/drupal/issues/3382510 📌 Introduce a new #config_target Form API property to make it super simple to use validation constraints on simple config forms, and adopt it in several core config forms Fixed and https://www.drupal.org/node/3373502 ), which doesn't seem to support #type text_format yet.

Steps to reproduce

Update module to any Drupal Core 10.2.x version and visit the Maintenance mode page.

Proposed resolution

Remove usage of #config_target and keep using default config-functionality for the time being.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium michaelsoetaert

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