Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Error during installation:
Fatal error: Call to undefined function user_access() in /d8/modules/admin_menu/admin_menu.module on line 149
When I refresh home page I see the status message:
2 modules have been enabled: Administration menu, Administration menu Toolbar style.
Cannot uninstall, same error:
Fatal error: Call to undefined function user_access() in /d8/modules/admin_menu/admin_menu.module on line 149
Comments
Comment #2
jasom CreditAttribution: jasom commentedComment #3
jasom CreditAttribution: jasom commentedComment #4
HongPong CreditAttribution: HongPong at kor group commentedPatch posted on #2563867: PHP Fatal errors: Cannot instantiate interface Drupal\Core\Cache\CacheBackendInterface and others for this.
Comment #5
Andrew.Mikhailov CreditAttribution: Andrew.Mikhailov at DrupalJedi commentedHello guys!
This bug was corrected here https://www.drupal.org/node/2457801
Please close this issue.
Best regards.
Comment #6
kmontyDuplicate of #2457801: Replace user_access function with Drupal::currentUser()->hasPermission method