Call to a member function getRoles(

Created on 26 July 2023, about 2 years ago

Problem/Motivation

when I added user role which has ability to create new accounts nad I have created one everything works fine, however once I logged out and tried to log in with the same account following issues , hence I cannot login at all :/

The website encountered an unexpected error. Please try again later.

Error: Call to a member function getRoles() on null in Drupal\role_hierarchy\Service\RoleHierarchyHelper->actionPluginAccess() (line 230 of modules/contrib/role_hierarchy/src/Service/RoleHierarchyHelper.php).
Drupal\role_hierarchy\Plugin\Action\RoleHierarchyRemoveRoleUser->access() (Line: 99)
Drupal\eca\Entity\Objects\EcaAction->execute() (Line: 188)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 190)
Drupal\eca\Processor->executeSuccessors() (Line: 146)
Drupal\eca\Processor->execute() (Line: 76)
Drupal\eca\EventSubscriber\EcaBase->onEvent()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 73)
Drupal\eca\Event\TriggerEvent->dispatchFromPlugin() (Line: 25)
Drupal\eca_user\HookHandler->login() (Line: 26)
eca_user_user_login()
call_user_func_array() (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 416)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 470)
user_login_finalize() (Line: 163)
Drupal\user\Form\UserLoginForm->submitForm()
call_user_func_array() (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 597)
Drupal\Core\Form\FormBuilder->processForm() (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 583)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)
📌 Task
Status

Active

Version

3.4

Component

Code

Created by

🇸🇰Slovakia coaston

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

Comments & Activities

Production build 0.71.5 2024