Problem/Motivation

When enabling base civictheme theme, these warnings are shown:

kristens-mbp-2:contrib kristenpol$ ddev drush then civictheme
 [warning] The "extra_field_block:node:civictheme_page:content_moderation_control" was not found
 [warning] The "field_block:node:civictheme_page:field_c_n_components" was not found
 [warning] The "field_block:node:civictheme_page:field_c_n_custom_last_updated" was not found
 [warning] The "extra_field_block:node:civictheme_page:content_moderation_control" was not found
 [warning] The "field_block:node:civictheme_page:field_c_n_components" was not found
 [warning] The "field_block:node:civictheme_page:field_c_n_custom_last_updated" was not found
 [warning] The "extra_field_block:node:civictheme_event:content_moderation_control" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_date_range" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_body" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_location" was not found
 [warning] The "extra_field_block:node:civictheme_event:content_moderation_control" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_date_range" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_body" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_location" was not found
 [warning] The "field_block:node:civictheme_event:field_c_n_date_range" was not found
 [warning] The "block_content:50c52459-c100-4e4d-92a4-9c4c77d8f8d0" was not found
 [warning] The "block_content:7cf65f98-cbae-4e9d-b6ea-7d6d1c437c1c" was not found
 [warning] The "block_content:d7098a8c-3ba3-48f7-bc0c-5787ebaa0427" was not found
 [warning] The "block_content:5c0ad15f-3e9c-4eeb-8525-7a064b06fc58" was not found
 [warning] The "block_content:b7f36176-620f-4178-aadd-9b448c610986" was not found
 [warning] The "block_content:286ff750-a9a9-423a-8a4e-515f79fc0a8f" was not found
 [warning] The "block_content:5508dc51-1cf8-4577-9038-b572fbd698ae" was not found
 [success] Successfully installed theme: civictheme

Steps to reproduce

Proposed resolution

Debug and fix.

Remaining tasks

  • Debug issue
  • Update code
  • Review and test
  • Commit :)

User interface changes

Won't see warnings in terminal when installing.

API changes

Data model changes

Comments

Kristen Pol created an issue. See original summary.

kristen pol’s picture

kristen pol’s picture

Assigned: Unassigned » richardgaunt

Assigning to Richard to look at.

kristen pol’s picture

Assigning to Joshua.

kristen pol’s picture

Priority: Normal » Major

Bumping priority.

joshua1234511’s picture

The warning related to [warning] The "block_content:50c52459-c100-4e4d-92a4-9c4c77d8f8d0" was not found
block_content not found is in know issue in CivicTheme.
The scenario
- The blocks are created during config import on theme install.
- Default site block are placed within the layout with predefined content.
- Block content at this point is not available, it is created only after the provision of content.

Block content cannot be created before the install of the block types.
After the provision of content blocks the blocks are correctly assigned.
These warning can be ignored

field_block Issue
- Needs more debugging.

kristen pol’s picture

Hmm… would be good to suppress these somehow if possible then… make things look buggy…

joshua1234511’s picture

Investigated the pending issues. It's a similar case.
Reference - https://www.drupal.org/project/drupal/issues/3176461 - Needs work
The provided patch does not solve the issue, it just removes the section listing the issue, which is incorrect.
Its due to the point when the installation happens the layout builder is not aware of the fields .

Looking into a way to suppress the warnings.
tried to cherry pick the solution used here https://www.drupal.org/project/drupal/issues/3415041
not working, issue still persists

kristen pol’s picture

Priority: Major » Normal

Thanks for the update. Moving the priority down as this is not a required fix. But, the DX is not ideal having this so not moving it to minor.

kristen pol’s picture

Assigned: joshua1234511 » Unassigned
Status: Needs work » Postponed

Joshua has other priorities for now so moving this to postponed.

kristen pol’s picture

Priority: Normal » Minor

Since we don't need any of the sitebuilding stuff for Barcelona, keeping this postponed. Also dropping to minor since it doesn't affect functionality.

kristen pol’s picture

Status: Postponed » Active
kristen pol’s picture

Fixed as part of:

#3467243: SDDS: This block is broken or missing errors

by removing config for now.

We need to figure out how to do sitebuilding per:

#3473170: [META] Determine SDDS sitebuilding approach with XB and Drupal CMS

kristen pol’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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