I am using PHP 7.1.0RC3

When I enable the Admin toolbar I get the WSOD. Logs show:

Mon Oct 24 14:25:14.791882 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #34 /path/to/dir/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.791787 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #33 /path/to/dir/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.791643 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #32 /path/to/dir/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.791421 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #31 /path/to/dir/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.791214 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #30 /path/to/dir/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.791051 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #29 /path/to/dir/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790909 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #28 /path/to/dir/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790795 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #27 /path/to/dir/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790670 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #26 /path/to/dir/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790481 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #25 /path/to/dir/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790306 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #24 /path/to/dir/vendor/symfony/http-kernel/HttpKernel.php(139): call_user_func_array(Object(Closure), Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.790096 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #22 /path/to/dir/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789965 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #21 /path/to/dir/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789838 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #20 /path/to/dir/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789729 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #19 /path/to/dir/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789539 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #17 /path/to/dir/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\\Core\\Form\\FormBuilder->buildForm('system_modules', Object(Drupal\\Core\\Form\\FormState)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789414 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #16 /path/to/dir/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\\Core\\Form\\FormBuilder->processForm('system_modules', Array, Object(Drupal\\Core\\Form\\FormState)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789299 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #15 /path/to/dir/core/lib/Drupal/Core/Form/FormBuilder.php(583): Drupal\\Core\\Form\\FormSubmitter->doSubmitForm(Array, Object(Drupal\\Core\\Form\\FormState)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789145 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #14 /path/to/dir/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\\Core\\Form\\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\\Core\\Form\\FormState)), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.789045 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #13 /path/to/dir/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788823 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #11 /path/to/dir/core/modules/system/src/Form/ModulesListForm.php(450): Drupal\\Core\\ProxyClass\\Extension\\ModuleInstaller->install(Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788690 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #10 /path/to/dir/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\\Core\\Extension\\ModuleInstaller->install(Array, true), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788558 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #9 /path/to/dir/core/lib/Drupal/Core/Extension/ModuleInstaller.php(200): Drupal\\Core\\ProxyClass\\Plugin\\CachedDiscoveryClearer->clearCachedDefinitions(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788441 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #8 /path/to/dir/core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php(83): Drupal\\Core\\Plugin\\CachedDiscoveryClearer->clearCachedDefinitions(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788339 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #7 /path/to/dir/core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php(31): Drupal\\Core\\Entity\\EntityManager->clearCachedDefinitions(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788220 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #6 /path/to/dir/core/lib/Drupal/Core/Entity/EntityManager.php(30): Drupal\\Core\\Entity\\EntityTypeManager->clearCachedDefinitions(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788109 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #5 /path/to/dir/core/lib/Drupal/Core/Entity/EntityTypeManager.php(140): Drupal\\Core\\Plugin\\DefaultPluginManager->clearCachedDefinitions(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.788023 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #4 /path/to/dir/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(188): Drupal\\Core\\Cache\\Cache::invalidateTags(Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.787946 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #3 /path/to/dir/core/lib/Drupal/Core/Cache/Cache.php(145): Drupal\\Core\\Cache\\CacheTagsInvalidator->invalidateTags(Array), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.787867 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #2 /path/to/dir/core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php(33): Drupal\\Core\\Cache\\CacheTagsInvalidator->getInvalidatorCacheBins(), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.787759 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] #1 /path/to/dir/core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php(71): Drupal\\Component\\DependencyInjection\\Container->get('cache.admin_men...'), referer: http://www.example.com/admin/modules
[Mon Oct 24 14:25:14.787412 2016] [:error] [pid 8602] [client xxx.xxx.xxx.xxx:52020] Error: Cannot instantiate interface Drupal\\Core\\Cache\\CacheBackendInterface in /path/to/dir/core/lib/Drupal/Component/DependencyInjection/Container.php on line 268 #0 /path/to/dir/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\\Component\\DependencyInjection\\Container->createService(Array, 'cache.admin_men...'), referer: http://www.example.com/admin/modules

Is there something I'm doing wrong? Config setting maybe?

Comments

dca123 created an issue.

leisurman’s picture

I get WSOD and error Fatal error: Call to undefined function user_access() in /var/www/html/d81/modules/admin_menu/admin_menu.module on line 149

I'm using drupal-8.2.1/admin_menu 8.x-3.x/PHP Version 5.6.26/Centos7

awasson’s picture

The fix is a little tricky but it can be removed and your site can be repaired by using Drush to remove the module and then use drush to rebuild the cache's.

If you don't have Drush follow these instructions: https://www.drupal.org/node/2259267#comment-11184597