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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3307045-5.patch | 892 bytes | alina.basarabeanu |
Issue fork domain_path-3307045
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
Comment #3
thomas.lobjoie commentedComment #4
thomas.lobjoie commentedComment #5
alina.basarabeanu commentedI 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.
Comment #6
i-trokhanenkoPatch #5 solves the error for me. Thank you. Marked as RTBC.
Comment #7
sundhar:+1 RTBC
@thomas.lobjoie @Alina Basarabeanu
Thanks for this patch
Comment #8
i-trokhanenko+1 RTBC
Comment #10
i-trokhanenkoCommitted, thanks!