Problem/Motivation
Installing the Varbase Starter site template logs a warning on every install:
[warning] The "views_exposed_filter_block:search-block_1" block plugin was not found
The warning is logged three times per install. The install still completes successfully and the header search renders correctly afterwards, so this is noise rather than a failure. It is an ordering problem inside the recipe.
The header region config in config/canvas.page_region.vartheme_bs5.header.yml places the exposed search form through the component block.views_exposed_filter_block.search-block_1. That block plugin is only provided once the block_1 display exists on views.view.search, and that display is created by a config action in recipe.yml.
Recipes import everything under config/ before running config.actions, so at the moment the header region is imported the display does not exist yet and the block plugin cannot be resolved. The plugin definition appears as soon as the action runs, which is why the warning is harmless and why nothing is broken after the install finishes.
Steps to reproduce
- Install the site template:
drush site:install varbase installer_site_template_form.add_ons=varbase_starter. - Read the install output. The warning above is logged, and the install then reports
Installation complete. - After the install, confirm everything resolved: the
block_1display exists onviews.view.search, theviews_exposed_filter_block:search-block_1plugin is defined, the header search box renders and no region reports a broken or missing block.
Proposed resolution
Make the block_1 display exist before the header region config is imported, so the block plugin is defined at import time and the warning stops. Options worth weighing:
- Ship the
block_1display as part of a config file the recipe imports rather than creating it through a config action. - Split the header region config into a later step, so it is applied after the action that creates the display.
- Keep the current order and suppress or document the warning, if neither of the above is worth the added complexity.
No behaviour change is expected either way: the install already completes cleanly and the header search already works.
Remaining tasks
- ✅ File an issue about this project
- ❌ Addition/Change/Update/Fix to this project
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
- None. The warning is install output only.
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- N/A
Issue fork varbase_starter-3617456
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 #2
rajab natshahComment #5
rajab natshahFixed in MR !26. Fresh install goes from three block-plugin warnings to zero, and the header region now pins the same Canvas component version the component carries.
Comment #6
rajab natshahComment #7
rajab natshah✅ Released varbase_starter-1.0.0-rc2