Ajax Error when adding any new item/entity

Created on 9 October 2017, about 7 years ago
Updated 9 November 2023, about 1 year ago

Hi all,

I have experienced this error after running updates:

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 1471 of /home/ca-test/public_html/core/lib/Drupal/Core/Database/Connection.php).

This error occurs on any edit page where I want to add new field value or upload image or any other AJAX call...

As this error is very "NOT" descriptive I did a bit trial and error and identified that this new update of 2.0-beta1 from 2.0-alpha2 was causing issues.... I am not sure exactly what was causing it but I am at least reporting this so if any other have this issue they can solve it.

Thanks,

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom Povilas Uogintas

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.71.5 2024