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.
After updating from 8.x-2.0-alpha6 to 8.x-2.0-alpha7 (PECL extension: Memcached v3.0.4). updating my settings.php with an updated $settings['bootstrap_container_definition'] from the module README to reflect the refactoring done in 8.x-2.0-alpha7, I'm getting the following fatal error when visiting `/admin/reports/memcache`:
Error: Call to undefined method Drupal\memcache\Driver\MemcachedDriver::memcache() in Drupal\memcache_admin\Controller\MemcacheStatisticsController->stats_table() (line 73 of modules/contrib/memcache/memcache_admin/src/Controller/MemcacheStatisticsController.php).
Drupal\memcache_admin\Controller\MemcacheStatisticsController->stats_table('cache')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 41)
Drupal\jsonapi\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment | File | Size | Author |
---|---|---|---|
#3 | memcache_undefined-2997537-3.patch | 934 bytes | KarlShea |
Comments
Comment #2
ericpughComment #3
KarlSheaLooks like the method name changed.
Comment #4
Fabianx CreditAttribution: Fabianx at Tag1 Consulting for Acquia commentedRTBC - nice catch
Comment #5
wturrell CreditAttribution: wturrell commentedCan also confirm this works - (change was to src/DrupalMemcacheBase.php in 2524c4 by looks of it).
Comment #7
bdragon CreditAttribution: bdragon at Tag1 Consulting for Acquia commentedCommitted, thanks!