- Issue created by @bkosborne
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
This might not be only entity view displays, but any entity using layout builder.
See π [warning] The "system_menu_block:welcome" block plugin was not found Active . Easiest way to reproduce is
ddev drush si --yes demo_umami
- πΊπΈUnited States Kristen Pol Santa Cruz, CA, USA
Given this will affect Drupal CMS until we switch to XB and it makes the system look buggy, can we figure out a way to try to suppress these somehow soon? Even a hacky way?
π Block plugin not found warnings on install Active
- First commit to issue fork.
- πΊπΈUnited States phenaproxima Massachusetts
I wrote a test for this and found the cause -- the issue is the
parent::preSave()
call in\Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::preSave()
, which invokes some inline block related hooks that expect all the block plugins in the section list to be instantiate-able, but the field block definition doesn't exist yet because apparently the block cache hasn't been cleared.Except that it has. LB does clear the block plugin cache when a field is created (in
\Drupal\layout_builder\Hook\LayoutBuilderHooks::fieldConfigInsert()
). In my test, I am very explicitly doing that. You'd expect that would cause the block to become available right away, but no, because\Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver::getFieldMap()
is only exposing fields used by entity view displays that have layout. The problem is...the view display hasn't been saved yet: We're still in the middle of pre-saving it!So I think that's your problem right there. I'm not sure what the correct solution is here because is some very sensitive logic. But at least we have a test now so we'll know we fixed it.
- πΊπΈUnited States benjifisher Boston area
I am adding the STR from Comment #3 to the issue summary. I have noticed the same thing.
- Status changed to Needs work
about 14 hours ago 10:47pm 29 April 2025 - π¬π§United Kingdom ChandeepKhosa
@kristen pol
Given this will affect Drupal CMS until we switch to XB and it makes the system look buggy, can we figure out a way to try to suppress these somehow soon? Even a hacky way?
I agree this would be really great to be fixed soon, as this could scare off less experienced developers looking at Drupal and Drupal CMS for the first time, and they will think that something has gone wrong.
In case it is helpful, here is the output from a fresh site install of Drupal CMS 1.1.0 (which in turn uses drupal/core-recommended 11.1.6) using Pygmy for a site I am preparing to launch on lagoon/amazee.io
β docker compose exec cli bash -c 'drush -y si && drush -y cr' You are about to: * DROP all tables in your 'drupal' database. // Do you want to continue?: yes. [notice] Starting Drupal installation. This takes a while. [notice] Performed install task: install_select_language [notice] Performed install task: install_select_profile [notice] Performed install task: install_load_profile [notice] Performed install task: install_verify_requirements [notice] Performed install task: \Drupal\RecipeKit\Installer\Form\RecipesForm [notice] Performed install task: \Drupal\RecipeKit\Installer\Form\SiteNameForm [notice] Performed install task: install_settings_form [notice] Performed install task: install_verify_database_ready [notice] Performed install task: install_base_system [notice] Performed install task: install_bootstrap_full [notice] Performed install task: install_install_profile [notice] Performed install task: install_configure_form [notice] <em class="placeholder">Publish state</em> hidden for: Media types (Document, Document, Image, Image, SVG Image, SVG Image) [notice] <em class="placeholder">Unpublish state</em> hidden for: Media types (Document, Document, Image, Image, SVG Image, SVG Image) [warning] The "field_block:node:page:field_content" block plugin was not found [warning] The "extra_field_block:node:page:content_moderation_control" block plugin was not found [warning] The "field_block:node:page:field_featured_image" block plugin was not found [warning] The "field_block:node:page:field_tags" block plugin was not found [warning] The "extra_field_block:node:page:content_moderation_control" block plugin was not found [warning] The "extra_field_block:node:page:content_moderation_control" block plugin was not found [notice] Performed install task: install_profile_modules [notice] Performed install task: install_profile_themes [notice] Performed install task: uninstall_profile [notice] Performed install task: install_finished [success] Installation complete. User name: admin User password: d8PhBLqsmW [success] Cache rebuild complete.