- πͺπΈSpain daniels____
I had this error since I upgraded. Authenticated role disappeared. Then when I created role again, it works again, but I have to assign permissions again and it's not a system role. Maybe some Drupal core maintainer can check this?
- Status changed to Needs work
over 1 year ago 9:27am 20 February 2023 - πͺπΈSpain daniels____
I change the status to Needs work, as I think the solution is not only manually create the role Authenticated again.
- Status changed to Closed: works as designed
over 1 year ago 10:30am 20 February 2023 This was originally a bug report against the comment module for βError: Call to a member function hasPermission() on null in comment_node_update_index() (line 458 of core/modules/comment/comment.module)β. You changed this to the user module. If you are not getting that precise error open a new issue with detailed steps to reproduce. If you are getting that error, reopen this.
- π³π±Netherlands Rop Rotterdam
Getting this error on Drupal 10.3 / PHP 8.2.20
I am not sure when it appeared. I did not notice it until trying to login again after a few days. It may have already been there before upgrading to 10.3. I did find that the role 'Authenticated' (authenticated) was missing.Error: Call to a member function hasPermission() on null in comment_node_update_index() (line 375 of core/modules/comment/comment.module).
comment_node_update_index() call_user_func_array() (Line: 416) Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 395) Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 415) Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 529) Drupal\node\Plugin\Search\NodeSearch->indexNode() (Line: 490) Drupal\node\Plugin\Search\NodeSearch->updateIndex() (Line: 80) search_cron() (Line: 335) Drupal\Core\Cron->Drupal\Core\{closure}() (Line: 395) Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 318) Drupal\Core\Cron->invokeCronHandlers() (Line: 159) Drupal\Core\Cron->run() (Line: 75) Drupal\Core\ProxyClass\Cron->run() (Line: 65) Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 115) Symfony\Component\HttpKernel\HttpKernel->terminate() (Line: 66) Drupal\Core\StackMiddleware\StackedHttpKernel->terminate() (Line: 715) Drupal\Core\DrupalKernel->terminate() (Line: 22)
Adding the Role 'Authenticated' back, seems to have helped.
- First commit to issue fork.