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)
CommentFileSizeAuthor
#3 memcache_undefined-2997537-3.patch934 bytesKarlShea
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ericpugh created an issue. See original summary.

ericpugh’s picture

Issue summary: View changes
KarlShea’s picture

Version: 8.x-2.0-alpha7 » 8.x-2.x-dev
Status: Active » Needs review
FileSize
934 bytes

Looks like the method name changed.

Fabianx’s picture

Status: Needs review » Reviewed & tested by the community

RTBC - nice catch

wturrell’s picture

Can also confirm this works - (change was to src/DrupalMemcacheBase.php in 2524c4 by looks of it).

  • KarlShea authored b49c96c on 8.x-2.x
    Issue #2997537 by KarlShea: Undefined method error on Statistics page
    
bdragon’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.