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

CommentFileSizeAuthor
#5 3307045-5.patch892 bytesalina.basarabeanu
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thomas.lobjoie created an issue. See original summary.

thomas.lobjoie’s picture

Status: Active » Needs review
thomas.lobjoie’s picture

Assigned: thomas.lobjoie » Unassigned
alina.basarabeanu’s picture

StatusFileSize
new892 bytes

I needed a patch to work alongside another patch on this module. (https://www.drupal.org/project/domain_path/issues/3226546)
Will be great if those open pull requests got merged.

i-trokhanenko’s picture

Status: Needs review » Reviewed & tested by the community

Patch #5 solves the error for me. Thank you. Marked as RTBC.

sundhar’s picture

:+1 RTBC
@thomas.lobjoie @Alina Basarabeanu
Thanks for this patch

i-trokhanenko’s picture

+1 RTBC

i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.