Skip to content

Add DependencySerializationTrait to DomainPathautoHelper

Fix issue #3307045: LogicException: The database connection is not serializable.

The website encountered an unexpected error. Please try again later.

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).

Edited by Thomas Lobjoie

Merge request reports