Can't place Entity View on Layout Builder with Dawn installed

You are here

aangel

Can't place Entity View on Layout Builder with Dawn installed

Hi, Mitch.

I'm making some pages in Layout Builder and came across the following error. To confirm, I started again with a clean install, thusly:
• Installed 8.7 with composer create-project drupal-composer/drupal-project:8.x-dev dawn-87 --no-interaction
• Loaded dawn.zip db
• Moved all folders and files into proper locations
• Site came up successfully
• Upgraded database with update.php
Enabled layout_builder layout_discovery admin_toolbar Devel Ctools
On Article | Full Content enabled "Use layout builder"
Clicked "Manage layout"
Added Section of 75%/25%
Tried to add "Entity View (Content)" block (provided by CTools)

The block was not added and here is what was in the logs:

TypeError: Argument 1 passed to Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::getEntitySections() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /app/web/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php on line 532 in Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getEntitySections() (line 70 of /app/web/core/modules/layout_builder/src/LayoutEntityHelperTrait.php)
#0 /app/web/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(532): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getEntitySections(NULL)
#1 /app/web/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(499): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getQuickEditSectionComponent()
#2 /app/web/modules/contrib/dawn_tools/dawn_tools.module(57): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->getComponent('field_image')
#3 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(287): dawn_tools_preprocess_field(Array, 'field', Array)
#4 /app/web/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('field', Array)

and:

Notice: Undefined index: #id in dawn_preprocess_block() (line 143 of /app/web/themes/dawn/dawn.theme)
#0 /app/web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(8, 'Undefined index...', '/app/web/themes...', 143, Array)
#1 /app/web/themes/dawn/dawn.theme(143): _drupal_error_handler(8, 'Undefined index...', '/app/web/themes...', 143, Array)
#2 /app/web/core/lib/Drupal/Core/Theme/ThemeManager.php(287): dawn_preprocess_block(Array, 'block', Array)
#3 /app/web/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('block', Array)
#4 /app/web/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array)
#5 /app/web/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, false) #6 /app/web/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render(Array)

The Entity View component from ctools is currently the only way to display a fully rendered node...are you able to see what's the issue?

-André