Problem/Motivation
#3150012: Fix RuntimeException: Callable LayoutBuilderAccessCheck::access requires a value for the $section_storage argument
#3109491: [Core issue] Not able to save the Layout when we add a view in a section and the warning [You have unsaved changes.]
Having the following Administration -> Reports -> Recent log messages
RuntimeException: Callable "Drupal\layout_builder\Access\LayoutBuilderAccessCheck::access" requires a value for the "$section_storage" argument. in Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 142 of /var/www/html/dev/TEST_PROJECT/docroot/core/lib/Drupal/Component/Utility/ArgumentsResolver.php).
but I had no blocker for the layout Builder functions
It is the access function in
No value for $section_storage argument
We do have a service. for LayoutBuilderAccessCheck::access
services:
layout_builder.tempstore_repository:
class: Drupal\layout_builder\LayoutTempstoreRepository
arguments: ['@tempstore.shared']
access_check.entity.layout_builder_access:
class: Drupal\layout_builder\Access\LayoutBuilderAccessCheck
tags:
- { name: access_check, applies_to: _layout_builder_access }
But they are calling the constructor
access_check.entity.layout_builder_access
The first section layout
Placeholder for the "Moderation control" field
The section is not in the list of allowed layouts
It'd default Varbase Layout Builder
we allow only 4 layouts
Layout Builder Restrictions
I think we could run into this type of issues
if we had an allowed layout
then we placed a section with that layout
when we remove that layout for the list allowed layouts
we will start getting the error message
I think when we create any content type then enable Layout Builder on it
the default fields will be placed in the layout page but with the default Drupal layout

Proposed resolution
Change default content for the Homepage to use the Bootstrap Layout layout_id: bs_1col
for the section content moderation control,
not Drupal core layout layout_id: layout_onecol
Remaining tasks
- Fix
- Test
- Release
User interface changes

API changes
N/A
Data model changes
N/A
Comments
Comment #2
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshah