Problem/Motivation
When I'm trying to save the Bootstrap theme settings in any Drupal functional test, I receive an error:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for bootstrap.settings with the following errors: bootstrap.settings:bootstrap_region_width_top_header missing schema, bootstrap.settings:bootstrap_region_width_top_header_form missing schema, bootstrap.settings:bootstrap_region_width_header missing schema, bootstrap.settings:bootstrap_region_width_header_form missing schema, bootstrap.settings:bootstrap_region_width_primary_menu missing schema, bootstrap.settings:bootstrap_region_width_secondary_menu missing schema, bootstrap.settings:bootstrap_region_width_page_top missing schema, bootstrap.settings:bootstrap_region_width_page_bottom missing schema, bootstrap.settings:bootstrap_region_width_highlighted missing schema, bootstrap.settings:bootstrap_region_width_featured_top missing schema, bootstrap.settings:bootstrap_region_width_breadcrumb missing schema, bootstrap.settings:bootstrap_region_width_content missing schema, bootstrap.settings:bootstrap_region_width_sidebar_first missing schema, bootstrap.settings:bootstrap_region_width_sidebar_second missing schema, bootstrap.settings:bootstrap_region_width_featured_bottom_first missing schema, bootstrap.settings:bootstrap_region_width_featured_bottom_second missing schema, bootstrap.settings:bootstrap_region_width_featured_bottom_third missing schema, bootstrap.settings:bootstrap_region_width_footer_first missing schema, bootstrap.settings:bootstrap_region_width_footer_second missing schema, bootstrap.settings:bootstrap_region_width_footer_third missing schema, bootstrap.settings:bootstrap_region_width_footer_fourth missing schema, bootstrap.settings:bootstrap_region_width_footer_fifth missing schema, bootstrap.settings:bootstrap_region_clean_none missing schema, bootstrap.settings:bootstrap_region_width_none missing schema, bootstrap.settings:bootstrap_region_class_none missing schema in Drupal\Core\Config\Development\ConfigSchemaChecker->onConfigSave() (line 98 of core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php).
This is because the bootstrap.settings schema file misses some settings. This is reproducible only in the test environment because the ConfigSchemaChecker service is included for now only there: https://www.drupal.org/node/3362879
So, this issue makes it impossible to use the Bootstrap theme on any Drupal test at all! Please fix this.
Steps to reproduce
Proposed resolution
Fix the issue by adding missing declarations to the bootstrap.settings schema file.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | bootstrap-fix_missing_schemas-3511614-1.patch | 3.1 KB | murz |
Issue fork bootstrap-3511614
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
murzI prepared a fix for this issue in the MR https://git.drupalcode.org/project/bootstrap/-/merge_requests/55 - please review.
Attach a static patch file with the fix to make it possible to use in composer in a safe way until #3204538: GitLab Merge Requests Unable to Generate Incremental Patch Files is resolved.
Comment #4
rosk0Thanks @murz!
Almost there, but one thing is still broken:
Schema errors for bootstrap.settings with the following errors: bootstrap.settings:bootstrap_icons variable type is integer but applied schema class is Drupal\Core\TypedData\Plugin\DataType\StringData.Comment #5
rosk0MR https://git.drupalcode.org/project/bootstrap/-/merge_requests/55 fixes schema, but it wouldn't work without fixes for tests from https://www.drupal.org/project/bootstrap/issues/3581310 and vice versa. I have combined changes from both MRs into https://git.drupalcode.org/project/bootstrap/-/merge_requests/72 to prove this.