Closed (fixed)
Project:
Autosave Form
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2018 at 00:28 UTC
Updated:
28 Aug 2018 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zainulhassan4 commentedComment #3
hchonovCould you please post the stack trace leading to serializing the DB connection?
Comment #4
zainulhassan4 commentedSorry about that. PFA the file. Would this suffice?
Thanks in advance.
Zain
Comment #5
hchonovUnfortunately I cannot see as part of what is the connection being serialized. You'll have to continue looking into your setup. I have an installation where autosave_form is being used together with CKEdtior where media is being embedded and there are no problems.
Comment #6
zainulhassan4 commentedhmm, its a wysiwyg in a paragraph.
If its working for you, then its a start at least.
I'll look into it further.
Thanks,
Comment #7
j3ll3nlI got the same issue here on a wysiwyg field in a content type with entity_embed. When i insert the image it revalidates the form and the error hits.
web/modules/contrib/autosave_form/src/Form/AutosaveFormValidator.php:69
Comment #8
a.milkovskyI am getting the same error. The error happens after entity_embed tries to rebuild the form. Looks like there is some data, which can not be serialized.
Comment #9
vermario commentedSame here: content type with paragraphs inside which we have ckeditor areas with entity_embed. Could it be the fact that we have paragraphs in the mix + translations that causes the issue?
Disabling the module "resolves" the issue, but it is not reallly an option in our situation. How can I help debugging this?
Comment #10
dgroene commentedNot sure if this is the best way to prevent serialization of the database connection, but is working for me.
Comment #12
hchonovAfter debugging for a while I've found out that the problem is in core, because there is a bug regarding the "serialization" of decorated services. See #2896993: Decorated services crash on serialization. and #2531564: Fix leaky and brittle container serialization solution for more information. I've committed a workaround, which should solve the issue for everyone.