Cannot create bootstrap layout configuration for entities view modes

Created on 18 September 2023, about 1 year ago
Updated 28 September 2023, about 1 year ago

Dear,

We are experiencing a weird behaviour with version 1.1.3 and D9.5.10 or D10.1.3. It is not possible to include some parameters to Bootstrap layout configuration through layout builder on entity view modes.

Steps to reproduce

Install fresh 9.5.10 or 10.1.*
Enable layout_builder and layout_discovery
Require and install drupal/bootstrap_barrio
Require and install drupal/bootstrap_layout_builder
Go to admin/structure/types/manage/page/display/default and enable layout builder for any view mode (default is ok)
Go to "Manage layout"
Introduce a new 'Bootstrap 1 col' section and click to 'Settings tab' (don't click anywhere else, just Settings)
Click on "container settings" and type any "Container wrapper classes"
Click on "Save layout"

Following error will be out
InvalidArgumentException: The configuration property third_party_settings.layout_builder.sections.0.layout_settings.container_wrapper.bootstrap_styles.background_media.image.media_id.media_library_open_button doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 76 of /opt/drupal/web/d9/web/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

Proposed resolution

No solution here, but we have realised that if you navigate to (click on configure section) Style>Background>Image and then the 'Add media' button is visible, that error does not appear. It is like the add media button is not fully loaded if you don't navigate to that menu

🐛 Bug report
Status

Closed: duplicate

Version

1.1

Component

Code

Created by

🇪🇸Spain pgrandeg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024