Logic Exception with preview button for block-comment

Created on 21 November 2015, almost 9 years ago
Updated 9 November 2023, 11 months ago

Problem/Motivation

Exception thrown when previewing a comment on a block content entity with content translation enabled.

Steps to reproduce:

  1. Install the standard profile
  2. Install the content translation module
  3. Create a comment type and target entity is *block*
  4. Create a custom block-library with a comment field,
  5. Now create a simple block for the new existing block-type in a custom block library
  6. Place the block on a region e.g. side-bar-first,
  7. Now try to write something in a comment, click on *preview* showing in a blank page *The website encountered an unexpected error. Please try again later.*
  8. Once check the log it provides the Logic Exception, seems during this try to *serialize* the db connection object which is being prevented from __sleep

Proposed resolution

Prevent database from being serialised.

Remaining tasks

Write tests

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: cannot reproduce

Version

9.3

Component
Typed data 

Last updated 3 days ago

  • Maintained by
  • 🇦🇹Austria @fago
Created by

🇮🇳India roynilanjan

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