- Issue created by @herved
- Merge request !16Error from widget (Cannot initialize readonly property). → (Open) created by herved
- 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Thanks, I was able to replicate it, and the patch resolved the issue.
Follows ✨ Field widget Active
The following error is thrown when the form is retrieved from cache:
Error: Cannot initialize readonly property Drupal\slim_select\Plugin\Field\FieldWidget\SlimSelectWidget::$configFactory from scope Drupal\Core\Plugin\PluginBase in Drupal\Core\Plugin\PluginBase->__wakeup() (line 80 of core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php).
- Apply slim_select widget on article field_tags
- Edit field_tags field and attempt to change the "Reference method", save > the error is thrown
It seems this already reported here in core:
📌
Allow DependencySerializationTrait to work with readonly properties
Active
For now remove readonly
when injecting the config factory.
?
None
None
None
Active
1.0
Code
Thanks, I was able to replicate it, and the patch resolved the issue.