0

Barebone Drupal 9.2.7 CiviCRM 5.42.

Error: Call to a member function hasPermission() on null in CRM_Core_Permission_Drupal8->check() (line 47 of /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Core/Permission/Drupal8.php)

#0 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Core/Permission.php(125):
CRM_Core_Permission_Drupal8->check()
#1 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Contact/BAO/Contact/Permission.php(158): CRM_Core_Permission::check()
#2 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Contact/Page/View.php(271): CRM_Contact_BAO_Contact_Permission::allow()
#3 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Contact/Page/View.php(158): CRM_Contact_Page_View::checkUserPermission()
#4 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Contact/Page/View/Summary.php(29): CRM_Contact_Page_View->preProcess()
#5 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Contact/Page/View/Summary.php(77): CRM_Contact_Page_View_Summary->preProcess()
#6 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(313): CRM_Contact_Page_View_Summary->run()
#7 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem()
#8 /var/www/html/d9/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke()
#9 /var/www/html/d9/web/modules/contrib/civicrm/src/Civicrm.php(88): CRM_Core_Invoke::invoke()
#10 /var/www/html/d9/web/modules/contrib/civicrm/src/Controller/CivicrmController.php(80): Drupal\civicrm\Civicrm->invoke()
#11 [internal function]: Drupal\civicrm\Controller\CivicrmController->main()
#12 /var/www/html/d9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#13 /var/www/html/d9/web/core/lib/Drupal/Core/Render/Renderer.php(578): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /var/www/html/d9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#15 /var/www/html/d9/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#16 /var/www/html/d9/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /var/www/html/d9/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#18 /var/www/html/d9/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#19 /var/www/html/d9/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#20 /var/www/html/d9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#21 /var/www/html/d9/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#22 /var/www/html/d9/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle()
#23 /var/www/html/d9/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#24 /var/www/html/d9/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#25 /var/www/html/d9/web/core/lib/Drupal/Core/DrupalKernel.php(717): Stack\StackedHttpKernel->handle()
#26 /var/www/html/d9/web/index.php(21): Drupal\Core\DrupalKernel->handle()
#27 {main}
1
  • Are you sure it's line 47 since there's no code at line 47? But in any case sounds like maybe a ufmatch issue, where the user/contact match didn't get made somehow. Could try logging out and back in?
    – Demerit
    Oct 12 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.