Content import fail if layout has addition properties

Created on 29 May 2024, 7 months ago
Updated 28 June 2024, 6 months ago

I am getting below error, while importing content in which layout section has additional attribute class added. For e.g. : class|home-teaser

For the the addition attribute of layout contributed module has been used.

Error: Call to a member function getComponents() on bool in Drupal\single_content_sync\Plugin\SingleContentSyncFieldProcessor\LayoutSection->importFieldValue() (line 207 of /../contrib/single_content_sync/src/Plugin/SingleContentSyncFieldProcessor/LayoutSection.php)
#0 /../modules/contrib/single_content_sync/src/ContentImporter.php(315): Drupal\single_content_sync\Plugin\SingleContentSyncFieldProcessor\LayoutSection->importFieldValue()
#1 /../modules/contrib/single_content_sync/src/ContentImporter.php(259): Drupal\single_content_sync\ContentImporter->setFieldValue()
#2 /../modules/contrib/single_content_sync/src/ContentImporter.php(205): Drupal\single_content_sync\ContentImporter->importCustomValues()
#3 /../modules/contrib/single_content_sync/src/ContentImporter.php(340): Drupal\single_content_sync\ContentImporter->doImport()
#4 /../modules/contrib/single_content_sync/src/ContentBatchImporter.php(24): Drupal\single_content_sync\ContentImporter->importFromFile()

🐛 Bug report
Status

Needs review

Version

1.4

Component

Code

Created by

🇮🇳India pratikshad Mumbai

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

Comments & Activities

Production build 0.71.5 2024