Ajax Error when adding any new item/entity

Created on 9 October 2017, over 6 years ago
Updated 9 November 2023, 8 months 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.69.0 2024