When we are trying to add Custom text for LBK Tab then we are getting error for "The database connection is not serializable".

Created on 5 April 2024, 9 months ago
Updated 15 April 2024, 9 months ago

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

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India atulakash

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

Comments & Activities

  • Issue created by @atulakash
  • 🇮🇳India atulakash

    After using this patch we are able to Add the Custom Text, but for Adding the Block we have to add the block for 2 times and then it starts to work.

  • 🇮🇳India atulakash

    If we have the contrib modules under the directory /modules/contrib, then in this case he earlier commented patch (lbk_tab_add_comment.patch) will not work, so I have modify this patch to suit this requirement, lbk_dependency_serialization_trait.patch

Production build 0.71.5 2024