Problem/Motivation
Updated from 3.0 to 3.1 and entire site is now WSOD-ing with a 500 error.
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "paragraph_view_mode.matcher.display_mode". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal::service('paragraph_view_mode.matcher.display_mode') (Line: 53)
paragraph_view_mode_entity_view_mode_alter('full', Object, Array) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('entity_view_mode', 'full', Object, Array) (Line: 180)
Drupal\Core\Entity\EntityViewBuilder->getBuildDefaults(Object, 'full') (Line: 61)
Drupal\node\NodeViewBuilder->getBuildDefaults(Object, 'full') (Line: 157)
Drupal\Core\Entity\EntityViewBuilder->viewMultiple(Array, 'full', NULL) (Line: 123)
Drupal\Core\Entity\EntityViewBuilder->view(Object, 'full') (Line: 134)
Drupal\Core\Entity\Controller\EntityViewController->view(Object, 'full') (Line: 66)
Drupal\node\Controller\NodeViewController->view(Object, 'full', NULL)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
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: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
1. Update paragraph_view_mode module at version 3.1.0
2. Visit site
Proposed resolution
Workaround: Revert to 3.0.0
Resolution: Fix issue? ;P
Comments
Comment #2
sayco commentedHave you cleared the cache? This is the only thing required for Drupal to recognize new services.
Let me know if this will help.
Comment #3
vmb commentedI am having a similar issue (I think). Getting a memory error message.
Comment #4
sayco commentedAs I wrote, in order to fix the missing service you have to clear the cache, however, there was yet another bug caused by the apparent mistake. It seems like when I stashed changes locally I haven't noticed that I'd wrongly solved the conflict and mixed up the name of the methods.
Please pull the latest 3.1.1 version which should be free of this bug.
It would be great if you could verify if the newest version solved the issue.
Comment #5
mjchadwickI did a cache clear for v3.1.0 and then started getting the memory error message reported by @vmb.
I just updated to v3.1.1 and both bugs have been fixed. Thanks!