Problem/Motivation
Place simplenews_subscription_block into panel and save it,
Expected - edit panel variant
Actual
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 1425 of /srv/core/lib/Drupal/Core/Database/Connection.php).
Proposed resolution
Remove unused query object
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2795453-simplenews-block-2.patch | 3.89 KB | andypost |
Comments
Comment #2
andypostQuery object breaks serialization
Comment #4
berdirmakes sense, thanks.