Problem/Motivation

The module is not working OOTB since it throws an exception upon the first save on the maintenance form.
Error message:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for readonlymode.settings with the following errors: readonlymode.settings:forms.additional.edit variable type is string but applied schema class is Drupal\Core\Config\Schema\Sequence, readonlymode.settings:forms.additional.view variable type is string but applied schema class is Drupal\Core\Config\Schema\Sequence in Drupal\Core\Config\Development\ConfigSchemaChecker->onConfigSave() (line 95 of /mnt/files/local_mount/build/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php).

Steps to reproduce

Install 8.x-1.1, enable the module, navigate to the site maintenance page, enable read-only mode. Notice the exception/error.

Proposed resolution

Fix the config schema.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

?

Comments

attila.fekete created an issue. See original summary.

attila.fekete’s picture

attila.fekete’s picture

Status: Active » Needs review
attila.fekete’s picture

Added labels.

attila.fekete’s picture

Title: Schema errors » Config schema errors
srishtiiee’s picture

Status: Needs review » Reviewed & tested by the community

This looks perfect. I have been working on the migration (3254722) for this module and found this error while testing the same. Hence, I can confirm that this is a necessary change to be made (even for the migration tests to pass)!

sharique’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.