Export conflict with layout builder

Created on 15 April 2020, over 4 years ago
Updated 30 June 2024, 6 months ago

I have a block type with layout builder managing the display. When i try to export the blocks i get this:

Exporting blocks...
 [notice] Custom blocks export started

In StorableConfigBase.php line 160:
                                                                                                            
  Invalid data type for config element structure_sync.data:blocks.14.fields.layout_builder__layout.section 
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇷Greece Liakoni

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.

  • 🇨🇦Canada mlizarraga

    I have the same issue, I wonder if would be better if instead of storing the values for the fields, this should be storing the serialized value this way we avoid the error but there should be a bit more work from the import section.

    I'm assuming without any further investigation that we could just deserialize it when we assign the value for the same field, I think that should work.

    The current problem is that trying to store the object (class) for the Layout Section cause this error if we serialize the value the error is gone, obviously we will have an issue with the import.

Production build 0.71.5 2024