Error while trying to create a new Entity Reference field

Created on 9 May 2024, 7 months ago
Updated 14 September 2024, 3 months ago

Problem/Motivation

If the module is enabled, then trying to create a new Entity Reference field results in an error not shown before.

Steps to reproduce

  1. Enable RDF Sync
  2. Go to an existing content type
  3. Add a new Entity Reference field
  4. Try to change the bundle type --> Error appears

I didn't have the time to debug further, but here is the log output:

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. στην Drupal\Core\Database\Connection->__sleep() (γραμμή 1920 από /web/core/lib/Drupal/Core/Database/Connection.php).

Stack:

#0 [internal function]: Drupal\Core\Database\Connection->__sleep()
#1 /web/core/lib/Drupal/Component/Serialization/PhpSerialize.php(14): serialize()
#2 /web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(111): Drupal\Component\Serialization\PhpSerialize::encode()
#3 /web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(127): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->doSetWithExpire()
#4 /web/core/lib/Drupal/Core/Form/FormCache.php(193): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->setWithExpire()

Uninstalling the module makes entity reference fields working again.

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇬🇷Greece larjohn

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

Comments & Activities

Production build 0.71.5 2024