ViewsBulkOperationsEvent::$entityTypeIds must not be accessed before initialization

Created on 20 January 2023, almost 2 years ago
Updated 12 December 2023, 12 months ago

Initial install of the latest Jan 10th update and adding BVO to a view. Breaks site with the following:

I'm on Drupal 9.4.0 -- PHP version 7.4.30

Error: Typed property Drupal\views_bulk_operations\ViewsBulkOperationsEvent::$entityTypeIds must not be accessed before initialization in Drupal\views_bulk_operations\ViewsBulkOperationsEvent->getEntityTypeIds() (line 99 of modules/contrib/views_bulk_operations/src/ViewsBulkOperationsEvent.php).


Drupal\views_bulk_operations\ViewsBulkOperationsEvent->getEntityTypeIds() (Line: 96)
Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData->init() (Line: 168)
Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm->init() (Line: 895)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers() (Line: 2478)
Drupal\views\Plugin\views\display\DisplayPluginBase->validate() (Line: 2112)
Drupal\views\ViewExecutable->validate() (Line: 128)
Drupal\views_ui\ViewFormBase->getDisplayTabs() (Line: 49)
Drupal\views_ui\ViewFormBase->prepareEntity() (Line: 125)
Drupal\Core\Entity\EntityForm->init() (Line: 26)
Drupal\views_ui\ViewFormBase->init() (Line: 96)
Drupal\Core\Entity\EntityForm->buildForm() (Line: 41)
Drupal\views_ui\ViewFormBase->buildForm()
call_user_func_array() (Line: 531)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 230)
Drupal\views_ui\Controller\ViewsUIController->edit()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)
πŸ› Bug report
Status

Needs work

Version

4.2

Component

Core

Created by

πŸ‡ΊπŸ‡ΈUnited States patoshi

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024