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.
Comments
Comment #2
kristen polSwitch parent.
Comment #3
kristen polAssigning to Richard to look at.
Comment #4
kristen polAssigning to Joshua.
Comment #5
kristen polBumping priority.
Comment #6
joshua1234511The 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.
Comment #7
kristen polHmm… would be good to suppress these somehow if possible then… make things look buggy…
Comment #8
joshua1234511Investigated 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
Comment #9
kristen polThanks 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.
Comment #10
kristen polJoshua has other priorities for now so moving this to postponed.
Comment #11
kristen polSince we don't need any of the sitebuilding stuff for Barcelona, keeping this postponed. Also dropping to minor since it doesn't affect functionality.
Comment #12
kristen polMay do this one now:
#3467243: SDDS: This block is broken or missing errors
Comment #13
kristen polFixed 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
Comment #14
kristen pol