Missing DependencySerializationTrait on FormLayoutBuilderConfigureSectionAlter

Created on 6 February 2025, about 1 month ago

Problem/Motivation

I'm using ui_patterns 2 with layout builder and ui_suite_bootstrap module on D10.4.

When i add a card and want to select variant from field, i have error

LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 1920 of core/lib/Drupal/Core/Database/Connection.php). 

DependencySerializationTrait has to be added to modules/ui_styles_layout_builder/src/HookHandler/FormLayoutBuilderConfigureSectionAlter.php

🐛 Bug report
Status

Active

Version

1.0

Component

UI Styles Layout Builder

Created by

🇫🇷France goz

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024