Serialization YAML issue resetting to fixture

Created on 6 July 2025, 6 days ago

Problem/Motivation

There is an issue resetting to a fixture after it has been edited.


Drupal\Component\Serialization\Exception\InvalidDataTypeException: Object support when dumping a YAML file has been disabled. in Drupal\Component\Serialization\Yaml::encode() (line 25 of core/lib/Drupal/Component/Serialization/Yaml.php).

Drupal\Component\Serialization\Yaml::encode(Array) (Line: 37)
Drupal\display_builder_devel\Plugin\display_builder\Island\StateDebugPanel->build('db_686a82af842ea', Array) (Line: 173)
Drupal\display_builder\IslandPluginBase->reloadWithGlobalData('db_686a82af842ea') (Line: 90)
Drupal\display_builder_devel\Plugin\display_builder\Island\StateDebugPanel->onUpdate('db_686a82af842ea', '686a833de41ce') (Line: 158)
Drupal\display_builder\Event\DisplayBuilderEventsSubscriber->dispatch(Object, 'onUpdate', Array) (Line: 113)
Drupal\display_builder\Event\DisplayBuilderEventsSubscriber->onUpdate(Object, 'onUpdate', Object) (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object, 'onUpdate', Object) (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'onUpdate', Object) (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, 'onUpdate') (Line: 581)
Drupal\display_builder\Controller\ApiController->createEventWithEnabledIsland('onUpdate', 'db_686a82af842ea', NULL, '686a833de41ce', NULL) (Line: 482)
Drupal\display_builder\Controller\ApiController->dispatchDisplayBuilderEventWithRenderApi('onUpdate', 'db_686a82af842ea', NULL, '686a833de41ce') (Line: 206)
Drupal\display_builder\Controller\ApiController->updateInstance(Object, 'db_686a82af842ea', '686a833de41ce')

Steps to reproduce

  1. Create a display builder
  2. Import a fixture like Ui Suite Bootstrap Demo thanks to Reset button
  3. Configure the first icon with an icon
  4. Reset again to the fixture Ui suite bootstrap demo
🐛 Bug report
Status

Active

Version

1.0

Component

display_builder_devel

Created by

🇫🇷France goz

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

Comments & Activities

Production build 0.71.5 2024