Problem/Motivation
On Varbase 9.2.x (Drupal ~11.4), varbase_default_content fails to import its demo blocks — for example the Homepage Welcome to Varbase block. The core Default Content importer bails with Field body is unknown because the basic block content type has no body field. The field.field.block_content.basic.body optional config is skipped during the profile install (config import ordering: the basic block type is created after varbase_core's optional config is imported), so the body field instance is never created even though its field storage exists.
As a result the Homepage renders without its Welcome to Varbase and Media Hero Slider block_content Layout Builder components.
Steps to reproduce
- Install Varbase 9.2.x on Drupal ~11.4 (with the heroslider component enabled).
- Visit the front page.
- The Homepage demo blocks (Welcome to Varbase) are missing; the watchdog logs Skipped some default content: Field body is unknown.
Proposed resolution
In varbase_default_content_install(), before importing the starter content, ensure the basic block content type has its body field. When the field storage exists but the field instance is missing, create field.field.block_content.basic.body from varbase_core's optional config, then clear the cached field definitions.
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 varbase-9.2.0, varbase_core-9.2.0
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Released in varbase_core-9.2.0
Issue fork varbase_core-3608307
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 #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshah✅ Released varbase_core-9.2.0
Comment #12
rajab natshahComment #13
rajab natshahComment #15
rajab natshah✅ Released varbase-9.2.0