Fatal error: Cannot redeclare ... stylesGroupManager

Created on 12 February 2024, 10 months ago
Updated 26 February 2024, 9 months ago

Problem/Motivation

Fatal Error breaks site when enabling Layout Builder Blocks module, in my case after update to Drupal. 10.2.3.

Fatal error: Cannot redeclare Drupal\layout_builder_blocks\EventSubscriber\BlockComponentRenderArraySubscriber::$stylesGroupManager in /var/www/html/web/modules/contrib/layout_builder_blocks/src/EventSubscriber/BlockComponentRenderArraySubscriber.php on line 42

which references:
* @param \Drupal\bootstrap_styles\StylesGroup\StylesGroupManager $styles_group_manager

Steps to reproduce

Enable Layout Builder Blocks in Drupal 10.2.3 while using the dependent module Bootstrap Styles 1.1.5, which is relies on deprecated Media Library Theme Reset issue. See https://www.drupal.org/project/bootstrap_styles/issues/3325150 πŸ› Media Library Theme Reset not supported Needs work

Proposed resolution

Remove the composer patch that hides deprecation errors for this module.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dehacker

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

Comments & Activities

Production build 0.71.5 2024