- Issue created by @sboden
- 🇬🇧United Kingdom very_random_man
I've seen this just now. The issue for me seemed to be with the Help module, which seems a bit random.
The Help module was killing my
drush deploy
on 'Update aborted by: help_post_update_add_permissions_to_roles' which i believe was related to an 'Adding non-existent permissions to a role is not allowed' issue. I removed the roles and disabled the help module and it seemed to do the trick. I then just enabled directly Help and got this error instead when browsing the site:Error: Call to a member function access() on null in Drupal\block\BlockAccessControlHandler->checkAccess() (line 124 of /home/deploy/deploy/xxx/xxx_build_2068/web/core/modules/block/src/BlockAccessControlHandler.php).
Again, disabling Help module fixes it.
None of this seems to be an issue on my local so I'm inclined to think it's something peculiar on my dev environment.
- 🇮🇳India shashank11 Mumbai
Hello sboden,
While upgrading ,we get the access check issues which may be from custom modules if you have made or permission issues.
As followup, when you ever have an error on "
help_post_update_add_permissions_to_roles
" while doingdrush db
the solution is as follows:drush pmu help drush updb drush en help
And then do a
drush cex
and check the changes: in Drupal 10.2.3 this gives a lot of small changes in the config files.- Status changed to Closed: won't fix
4 months ago 9:57am 6 March 2024 There is a workaround. There don't seem to be that many people with the problem. I can't replicate it in other Drupal projects.
Closing this.