Not sure what all the conditions are to trigger this but I am getting an error on the node edit page. I think it just needs a check I will post a patch in a minute.

Notice: Undefined index: #type in better_field_descriptions_field_widget_form_alter() (line 129 of modules/contrib/better_field_descriptions/better_field_descriptions.module).

better_field_descriptions_field_widget_form_alter(Array, Object, Array) (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('field_widget_form', Array, Object, Array) (Line: 266)
Drupal\Core\Field\WidgetBase->formMultipleElements(Object, Array, Object) (Line: 104)
Drupal\Core\Field\WidgetBase->form(Object, Array, Object) (Line: 171)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object, Array, Object) (Line: 122)
Drupal\Core\Entity\ContentEntityForm->form(Array, Object) (Line: 115)
Drupal\node\NodeForm->form(Array, Object) (Line: 117)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('node_event_form', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm('node_event_form', Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 113)
Drupal\node\Controller\NodeController->add(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 21)

Comments

jmuzz created an issue. See original summary.

jmuzz’s picture

Status: Active » Needs review
StatusFileSize
new754 bytes

This gets rid of the error for me.

yogeshmpawar’s picture

Assigned: Unassigned » yogeshmpawar

Checking this issue.

  • yogeshmpawar committed 58ea462 on 8.x-1.x authored by jmuzz
    Issue #2978108 by jmuzz, yogeshmpawar: Errors on node edit page
    
yogeshmpawar’s picture

Assigned: yogeshmpawar » Unassigned
Status: Needs review » Fixed

Thanks @jmuzz for pointing out & working on this issue.
your patch failed to apply but i have Re-rolled the patch, committed & pushed to 8.x-1.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

hugronaphor’s picture

Can we get a new release which would include these fixes?
Thanks

yogeshmpawar’s picture

hey @hugronaphor, These changes are available in new release - https://www.drupal.org/project/better_field_descriptions/releases/8.x-1.6