LogicException: The database connection is not serializable.

Created on 31 August 2022, almost 2 years ago
Updated 28 April 2023, about 1 year ago

Problem/Motivation

After updating to 1.x-dev#a9cbf81275 I started getting this fatal 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 2035 of core/lib/Drupal/Core/Database/Connection.php).

Proposed resolution

Add DependencySerializationTrait to DomainPathautoHelper

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom thomas.lobjoie

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024