No check has been registered for access_check.admin_menu_block_page

Created on 16 January 2024, 5 months ago
Updated 6 March 2024, 4 months ago

Problem/Motivation

I have a working Drupal 10.1.7 instance, using drupal/core-recommended. After I upgrade it to 10.2.1, I get a WSOD and see following error in watchdog when going to any of the system admin menus (like "Status report" or "Recent logs"):

InvalidArgumentException: No check has been registered for access_check.admin_menu_block_page in Drupal\Core\Access\CheckProvider->loadCheck() (line 97 of /data/code/project/web/core/lib/Drupal/Core/Access/CheckProvider.php).

Steps to reproduce

Upgrading to 10.2.1

Proposed resolution

No idea yet.

🐛 Bug report
Status

Closed: won't fix

Version

11.0 🔥

Component
Menu system 

Last updated about 16 hours ago

Created by

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.

  • 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 doing drush 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
  • 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.

Production build 0.69.0 2024