Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "module_handler". in /Users/markus.kalkbrenner/workspace/git/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php:979
Stack trace:
#0 /Users/markus.kalkbrenner/workspace/git/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php(572): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('module_handler')
#1 /Users/markus.kalkbrenner/workspace/git/drupal/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php(53): Symfony\Component\DependencyInjection\ContainerBuilder->get('module_handler')
#2 /Users/markus.kalkbrenner/workspace/git/drupal/modules/search_api/src/Query/Query.php(709): Drupal\search_api\Query\Query->traitWakeup()
#3 [internal function]: Drupal\search_api\Query\Query->__wakeup()
#4 /Users/markus.kalkbrenner/workspace/git/drupal/vendor/phpunit/phpunit/src/Util/PHP.php(114): unserialize('a:4:{s:10:"test...')
#5 /Users/mar in /Users/markus.kalkbrenner/workspace/git/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php on line 979
That reminds me of #2902810: Fatal error: You have requested a non-existent service "entity_type.manager"
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2909153-5--fix_query_deserialization_in_tests.patch | 922 bytes | drunken monkey |
Comments
Comment #2
drunken monkeyThis seems like it might be best resolved in Core: #2909164: Fatal error with stub container in DependencySerializationTrait::__wakeup().
Would be great if you could comment there and maybe also explain under which circumstances the container is actually there but incomplete after a test fail (in case you know).
In the meantime, we may want to work around this issue in our code, too, though.
Comment #3
mkalkbrennerSorry, I forgot the explanation you already gave earlier.
As soon as you fix all errors on 8.3.x you can run the tests on 8.4.x.
It's horrible that these resulting fatal errors hide the real cause :-(
Comment #4
borisson_Should we add an @todo to the comment that relates to the drupal core issue?
Comment #5
drunken monkeyYeah, makes sense, thanks!
Comment #6
borisson_Looks good.
Comment #8
drunken monkeyOK, great.
Committed.