I am trying to use the select2boxes module on the users page where I am referencing some taxonomy terms, however getting the following when I go to the user form display interface:

Notice: Undefined index: auto_create in select2boxes_field_widget_third_party_settings_form() (line 103 of /public_html/modules/contrib/select2boxes/select2boxes.module).

Comments

Christopher Riley created an issue. See original summary.

matsbla’s picture

Thanks for reporting!
Which widget & configurations did you use?

nikunj.shah’s picture

StatusFileSize
new702 bytes

Hello Christopher Riley,

This patch will solve your error. Thanks.

Christopher Riley’s picture

Status: Active » Needs review

Perfect seems to have resolved the issue and its working as expected. Thank you so much for the patch.

  • matsbla committed 8c7d373 on 8.x-1.x authored by nikunj.shah
    Issue #2980327 by nikunj.shah, Christopher Riley: Undefined Index...
matsbla’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.x-dev
Status: Needs review » Fixed

Thanks!

lawxen’s picture

Status: Fixed » Needs work

Still has error with the latest dev version

× Close
Error messageNotice: Undefined index: auto_create in Drupal\select2boxes\Plugin\Field\FieldWidget\MultiSelect2BoxesAutocompleteWidget->formElement() (line 60 of modules/contrib/select2boxes/src/Plugin/Field/FieldWidget/MultiSelect2BoxesAutocompleteWidget.php).
Drupal\select2boxes\Plugin\Field\FieldWidget\MultiSelect2BoxesAutocompleteWidget->formElement(Object, 0, Array, Array, Object) (Line: 335)
Drupal\Core\Field\WidgetBase->formSingleElement(Object, 0, Array, Array, Object) (Line: 85)
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: 64)
Drupal\group\Entity\Form\GroupContentForm->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('group_content_business-group_membership_edit_form', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm('group_content_business-group_membership_edit_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, 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: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 41)
Drupal\jsonapi\StackMiddleware\FormatSetter->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: 19)
lawxen’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new1.72 KB
new187.63 KB

When we use custom Entity Reference views filter, we don't have the "auto_create"
eee

lawxen’s picture

StatusFileSize
new1.83 KB
new1.63 KB

  • matsbla committed b29108e on 8.x-1.x authored by caseylau
    Issue #2980327 by caseylau: Undefined Index auto_create
    
matsbla’s picture

Status: Needs review » Fixed

Okay thanks for that!

Status: Fixed » Closed (fixed)

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