AssertionError: The container was serialized

Created on 13 April 2023, about 1 year ago
Updated 27 April 2023, about 1 year ago

Problem/Motivation

When i want to edit a field setting in an entity display, i get an error :
AssertionError : The container was serialized. in assert() (/var/www/html/web/core/lib/Drupal/Core/DependencyInjection/Container.php ligne 28)

Steps to reproduce

You need to have at least one display fields configured in your display and the error show.

Proposed resolution

I search the error assertion and find a patch that add the use of DependencySerializationTrait in the PHP Class to fix this error.

Remaining tasks

I will upload a patch soon.

🐛 Bug report
Status

Fixed

Version

9.1

Component

Code

Created by

🇫🇷France Flodevelop

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

Comments & Activities

Production build 0.69.0 2024