Undefined array key 0 in Drupal\views_ui\ViewEditForm->getFormBucket() (line 1214 of core/modules/views_ui/src/ViewEditForm.php)

Created on 4 June 2025, about 1 month ago

Problem/Motivation

When i go to edit view page i get this error

Warning: Undefined array key 0 in Drupal\views_ui\ViewEditForm->getFormBucket() (line 1214 of core/modules/views_ui/src/ViewEditForm.php).
Drupal\views_ui\ViewEditForm->getFormBucket() (Line: 624)
Drupal\views_ui\ViewEditForm->getDisplayDetails() (Line: 396)
Drupal\views_ui\ViewEditForm->getDisplayTab() (Line: 213)
Drupal\views_ui\ViewEditForm->form() (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm() (Line: 42)
Drupal\views_ui\ViewFormBase->buildForm()
call_user_func_array() (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 220)
Drupal\views_ui\Controller\ViewsUIController->edit()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

I add facets 3 filter to my view.
At line 1214 of ViewEditForm class, variable $gid is never zero.
My $group_info is:

$group_info array (2)
operator => string (3) "AND"
groups => array (2)
1 => string (3) "AND"
2 => string (2) "OR"

Thank you

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Production build 0.71.5 2024