Call to member function bundle() in paragraphs_sets_field_widget_complete_form_alter

Created on 17 September 2024, 2 months ago

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.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India u_tiwari

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

Comments & Activities

Production build 0.71.5 2024