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.
Hi,
On a fresh D8 install with admin_menu, I get this error on admin/modules/list/confirm after enabling:
Fatal error: Call to undefined method Drupal\Core\Cache\CacheFactory::registerBin() in
/var/projects/d8/contrib/admin_menu/lib/Drupal/admin_menu/AdminMenuBundle.php on line 23
Call Stack
# Time Memory Function Location
1 0.0001 263688 {main}( ) ../index.php:0
2 0.0010 307928 drupal_handle_request( ) ../index.php:12
3 0.0031 435776 Drupal\Core\DrupalKernel->boot( ) ../bootstrap.inc:2207
4 0.0031 435920 Drupal\Core\DrupalKernel->initializeContainer( ) ../DrupalKernel.php:153
5 0.0153 1052368 Drupal\Core\DrupalKernel->buildContainer( ) ../DrupalKernel.php:338
6 0.2105 1896280 Drupal\admin_menu\AdminMenuBundle->build( ) ../DrupalKernel.php:407
Any idea?
Maybe an API change in D8 ?
Comment | File | Size | Author |
---|---|---|---|
#21 | admin_menu-yaml-service-1965552-21.patch | 8.97 KB | dmouse |
Comments
Comment #1
jibranyeah #1939660: Use YAML as the primary means for service registration went in and now services are registered through YAML.
Comment #2
jibranComment #3
jibranIt is a critical bug like #1950180: "cache.admin_menu bin doesn't exist" in D8.
Comment #4
klonosMy installation WSODs on me after trying to enable admin_menu. Applying the patch in #1 fixes things. Thanx.
Lets get this in!
Comment #5
egger CreditAttribution: egger commentedAfter applying the patch I got this error:
Comment #6
jibranTry to install admin_menu after applying this patch.
Comment #7
alexpottLets wait for this to land #1167144: Make cache backends responsible for their own storage
Comment #8
klonos#1167144: Make cache backends responsible for their own storage is in. Lets please fix this because admin_menu cannot be installed in D8.
Comment #9
alexpottThis works for me...
Comment #11
alexpottThose test failures are unrelated...
Comment #12
jibranComment #13
vipTelnet CreditAttribution: vipTelnet commented#1: YAML-service-registration.patch queued for re-testing.
Comment #14
Dave Reid#9: 1965552.9.yaml-service.admin-menu.patch queued for re-testing.
Comment #15
alexander_danilenko CreditAttribution: alexander_danilenko commentedSome additional changes to #9 patch
Comment #16
jibranre-uploading #15 for testing.
Comment #17
Rob C CreditAttribution: Rob C commentedWhen i manually test the patch in #15/#16 i get a:
Patch in #9 still seems to apply clean.
Comment #18
dmouseThe patch #15 and #16 not work when applying.
I manually apply the patch, and i solved others problems with the "Language::TYPE_INTERFACE" and "$user->uid"
// https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Language%...
// propertys
-language(Language::TYPE_INTERFACE)->langcode
+language(Language::TYPE_INTERFACE)->id
get the user id
-$user->uid // protected
+$user->id() //getter
=)
Comment #19
dmousere-upload i forget one "print_r" =P
Comment #20
undertext CreditAttribution: undertext commentedRequest parameter must be passed to drupal_page_get_cache function. language() function is now deprecated.
Patch above uses Symfony Request and Response objects, not Guzzle.
Note that patches in this thread are covering next issues:
https://drupal.org/node/2045415, https://drupal.org/node/2017677, https://drupal.org/node/2012178
Comment #21
dmouseChange the global user to Drupal::currentUser(), the global variable is deprecate.
@undertext in line 419 of admin_menu.module, the exit function not it is necessary?
Comment #22
salvis#21 has made admin_menu work again for me.
Without this patch, installing admin_menu crashes D8 to the point where it needs reinstalling.
Comment #23
klonosSeconding this. Not an actual code review, but as @salvis says the patch makes admin_menu work in D8 again.
Comment #24
klonosWith latest D8 dev and #21 applied I now get this when trying to enable the module:
Comment #25
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 #26
joachim CreditAttribution: joachim commentedThe maintainers of this module are still active. Rather than forking, this patch needs rerolling so it can be committed here.
Comment #27
Dave ReidSorry I missed the RTBC window for this earlier. I'd be happy to commit anything that is up to date for fixing things on the 8.x-3.x branch that has been tested by several others.
Comment #28
jibranWell it is not a simple task anymore now it is not working anymore because we have revamped all the menu system in D8 and it should be re-written above the new system. We fixed #1939660: Use YAML as the primary means for service registration 2yrs ago so you can think how obsolete is this code. I am happy that @Dave Reid is here now to commit patches. :)
Comment #29
DamienMcKenna@klonos: If you do get to fix the problems, please upload patches here so that they can be reviewed, patches can be committed and a working version can be released.
Comment #30
joachim CreditAttribution: joachim commented> Well it is not a simple task anymore now it is not working anymore because we have revamped all the menu system in D8 and it should be re-written above the new system
Could someone update the issue summary to explain what needs to be done, rather than just a statement of how it currently crashes?
Also, would this issue benefit from being broken down into smaller chunks?
Comment #31
jibranHere is a start https://github.com/jibran/admin_menu/commit/3683ab0409e77d16719dcbb47413...
Comment #32
joachim CreditAttribution: joachim commentedCool! Maybe file a new issue for that here & post that diff as a patch?
Comment #33
jibranCreated #2393983: Replace deprecated functions & system variables for #32.
Comment #34
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 #35
thalles