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

  1. Install Varbase 9.2.x on Drupal ~11.4 (with the heroslider component enabled).
  2. Visit the front page.
  3. 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

Command icon 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

rajab natshah created an issue. See original summary.

  • rajab natshah committed a7660ca0 on 9.2.x
    fix: #3608307 Homepage and Landing demo blocks (Welcome to Varbase) do...
rajab natshah’s picture

Issue tags: +varbase_core-9.2.0
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
Issue tags: +varbase-9.2.0
rajab natshah’s picture

Issue tags:
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: rajab natshah » josebc
Status: Active » Needs review
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
Issue summary: View changes

✅ Released varbase_core-9.2.0

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.2.0

Status: Fixed » Closed (fixed)

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