- Issue created by @u_tiwari
- 🇩🇪Germany stborchert
Could you please add some steps how to reproduce this error.
Some nodes throw this php fatal error and node is not editable anymore.
Call to member function bundle() in paragraphs_sets_field_widget_complete_form_alter()
#0 /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(545): paragraphs_sets_field_widget_complete_form_alter()
#1 /var/www/html/docroot/core/lib/Drupal/Core/Field/WidgetBase.php(156): Drupal\Core\Extension\ModuleHandler->alter()
#2 /var/www/html/docroot/modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php(1478): Drupal\Core\Field\WidgetBase->form()
#3 /var/www/html/docroot/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php(186): Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->form()
#4 /var/www/html/docroot/core/lib/Drupal/Core/Entity/ContentEntityForm.php(121): Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm()
#5 /var/www/html/docroot/core/modules/node/src/NodeForm.php(127): Drupal\Core\Entity\ContentEntityForm->form()
#6 /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityForm.php(107): Drupal\node\NodeForm->form()
Fix:
To add a check if entity exists or not.
Active
3.0
Code
Could you please add some steps how to reproduce this error.