LogicException: The database connection is not serializable

Created on 24 October 2024, 29 days ago

Problem/Motivation

Getting the below error whenever I try to change any options under the 'Field Storage' section of a file field

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 1920 of /var/www/html/docroot/core/lib/Drupal/Core/Database/Connection.php).

Steps to reproduce

  • Install the module
  • Add a 'File' field to any content types, save it.
  • Edit the field and try to update any options under 'Field storage'

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India Akhil Babu Chengannur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024