Import failed with content available on layout builder

Created on 19 April 2022, over 2 years ago
Updated 11 July 2023, over 1 year ago

Import failed with content available on layout builder. It gives an error on line number 88 of "src\Service\EntityPublisher.php". __cline method called on non-object.

Error:
Error: __clone method called on non-object in core/modules/layout_builder/src/SectionStorage/SectionStorageTrait.php on line 179 #0 core/lib/Drupal/Core/Entity/ContentEntityBase.php(1237): Drupal\layout_builder\Field\LayoutSectionItemList->__clone()

Feature request
Status

Fixed

Version

3.1

Component

Code

Created by

🇺🇸United States janmejaya

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.

  • 🇮🇳India pratikshad Mumbai

    I tried the patch and even the latest dev version of these module but i am getting these issues . Please suggest.

    Error: __clone method called on non-object in Drupal\layout_builder\Field\LayoutSectionItemList->__clone() (line 180 of /var/www/html/web/core/modules/layout_builder/src/SectionListTrait.php)

    #0 /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php(1255): Drupal\layout_builder\Field\LayoutSectionItemList->__clone()
    #1 /var/www/html/web/modules/contrib/content_synchronizer/src/Service/EntityPublisher.php(86): Drupal\Core\Entity\ContentEntityBase->__clone()
    #2 /var/www/html/web/modules/contrib/content_synchronizer/src/Service/EntityPublisher.php(67): Drupal\content_synchronizer\Service\EntityPublisher->saveEntityWithRevision(Object(Drupal\node\Entity\Node), '168910.....', Object(Drupal\node\Entity\Node))
    #3 /var/www/html/web/modules/contrib/content_synchronizer/src/Processors/Entity/EntityProcessorBase.php(265): Drupal\content_synchronizer\Service\EntityPublisher->saveEntity(Object(Drupal\node\Entity\Node), '16891.....', Object(Drupal\node\Entity\Node), Array)
    #4 /var/www/html/web/modules/contrib/content_synchronizer/src/Processors/ImportProcessor.php(78): Drupal\content_synchronizer\Processors\Entity\EntityProcessorBase->import(Array)

Production build 0.71.5 2024