Hi all,
I'm not sure on how this went wrong, but I have 2 errors on my Drupal 9 website. On visiting the homepage, I get the WSOD beneath. I found an issue topic ons Easy Breadcrumb, but that doesn't apply here, because the error remains after uninstalling the module.
InvalidArgumentException: The controller for URI "" is not callable. in Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (line 75 of core/lib/Drupal/Core/Controller/ControllerResolver.php).
Drupal\Core\Controller\TitleResolver->getTitle(Object, Object) (Line: 27)
Drupal\mgv\Plugin\GlobalVariable\RawCurrentPageTitle->getValue() (Line: 20)
Drupal\mgv\Plugin\GlobalVariable\CurrentPageTitle->getValue() (Line: 101)
Drupal\mgv\MgvPluginManager->createInstance('social_sharing\linkedin', Array) (Line: 61)
Drupal\mgv\MgvPluginManager->getVariables() (Line: 107)
mgv_template_preprocess_default_variables_alter(Array, NULL, NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('template_preprocess_default_variables', Array) (Line: 1268)
_template_preprocess_default_variables() (Line: 1237)
template_preprocess(Array, 'views_view', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('views_view', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 444)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
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: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Every other page has this WSOD:
Drupal\Core\Asset\Exception\InvalidLibrariesOverrideSpecificationException: The specified library stable/normalize does not exist. in Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions() (line 105 of core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php).
Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('core') (Line: 149)
Drupal\Core\Cache\CacheCollector->get('core') (Line: 44)
Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('core') (Line: 58)
Drupal\Core\Asset\LibraryDiscovery->getLibraryByName('core', 'html5shiv') (Line: 54)
Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies(Array) (Line: 31)
Drupal\Core\Asset\LibraryDependencyResolver->getLibrariesWithDependencies(Array) (Line: 104)
Drupal\Core\Asset\AssetResolver->getLibrariesToLoad(Object) (Line: 116)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, ) (Line: 315)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 161)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 94)
Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.response', Object) (Line: 191)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 173)
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: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I have no clue on how to debug this. Can anyone help me out?
Thanks in advance!
Comments
We just ran into the same
We just ran into the same issue on admin pages, no clue yet what's the reason :(
http://www.DROWL.de || Professionelle Drupal Lösungen aus Ostwestfalen-Lippe (OWL)
http://www.webks.de || webks: websolutions kept simple - Webbasierte Lösungen die einfach überzeugen!
http://www.drupal-theming.com || Individuelle Responsive Themes
Not sure if this would help
Not sure if this would help someone, but in my case controller expected to recieve a service that does not exist and that was the cause of the issue.
See
__construct()andcreate()in example below (themy_module.content_magnifierservice was not defined yet):It might help someone
Encountered the same issue on Drupal 10.x, tried couple of above solutions, but no luck. Finally realized that I must check the htaccess file. I uncommented the bellow line and cleared the cache. Surprise its started working as expected.
# uncomment the following line:
RewriteBase /
Note: vhosts configuration is enabled on my Devbox.
_title_callback
For us, this issue was caused by changing the title from a callback to a string.
In our routing file, we had:
`_title_callback': 'String Title'`
Changing `_title_callback` to just `_title` fixed this issue for us.
There's something wrong with
There's something wrong with your service definition or how you call it.
My problem was that my services file had the extension .yaml instead of .yml