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.
Since a short time (the new toolbar went in) you can't use admin_menu anymore
because
Call to undefined function shortcut_toolbar_pre_render() in /var/www/d8/core/includes/common.inc on line 5541
is fired, because admin_menu expects this function.
I guess admin_menu should directly use hook_toolbar or something else.
Comment | File | Size | Author |
---|---|---|---|
#3 | admin_menu-shortcut-3.patch | 644 bytes | simg |
#1 | admin_menu.shortcut.1.patch | 1.01 KB | sun |
Comments
Comment #1
sunFor now, attached patch resolves this issue.
Thanks for reporting, reviewing, and testing! Committed and pushed. A new development snapshot will be available within the next 12 hours.
Please also leave feedback here: #1847370: Why did I install admin_menu in favor of the Toolbar in Drupal 8?
Comment #3
simg CreditAttribution: simg commentedI've had this same issue with the git version of the code. Turns out the #1 patch wasn't fully applied. #1 patch also no longer applies to the git version.
Attached patch re-applies the missing changes.
Comment #4
jibranI have created a fork of admin_menu 8.x-3.x on github. Please help me fix it for Drupal 8
PRs are welcome. https://github.com/jibran/admin_menu
Comment #5
thallesThis module has been deprecated for Drupal 8.
For Drupal 8: the Admin Toolbar provides an experience similar to admin_menu with the core toolbar.
Comment #6
thalles