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
?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | readonlymode-config-schema-errors-3224538-4.patch | 1.39 KB | attila.fekete |
| #2 | readonlymode-config-schema-errors-3224538-1.patch | 937 bytes | attila.fekete |
Comments
Comment #2
attila.fekete commentedComment #3
attila.fekete commentedComment #4
attila.fekete commentedAdded labels.
Comment #5
attila.fekete commentedComment #6
srishtiiee commentedThis 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)!
Comment #8
sharique commented