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

RajabNatshah created an issue. See original summary.

  • RajabNatshah committed 1e5de42 on 8.x-1.x
    Issue #3176242: Change the default layout for Varbase Landing page (...
rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed 6091c26 on 8.x-1.x
    Issue #3176242: Change the default layout for Varbase Landing page (...

  • RajabNatshah committed c3996cd on 9.0.x
    Issue #3176242: Change the default layout for Varbase Landing page (...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-8.8.7, +varbase-9.0.0
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue tags: +varbase-9.0.0-alpha1

Status: Fixed » Closed (fixed)

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