Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently if taxonomy module enabled service provider fails
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: [error]
The service "serializer.normalizer.entity_reference_revision_item"
has a dependency on a non-existent service "rest.link_manager". in
/var/www/html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:58
Stack trace:
#0
/var/www/html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(42):
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences(Array)
#1
/var/www/html/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(36):
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processDefinition(Object(Symfony\Component\DependencyInjection\Definition))
#2
/var/www/html/vendor/symfony/dependency-injection/Compiler/Compiler.php(104):
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->process(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
#3
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(590):
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
#4 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(1284):
Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#5 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(873):
Drupal\Core\DrupalKernel->compileContainer()
#6 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(797):
Drupal\Core\DrupalKernel->initializeContainer()
#7
/var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php(540):
Drupal\Core\DrupalKernel->updateModules(Array, Array)
#8
/var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php(191):
Drupal\Core\Extension\ModuleInstaller->updateKernel(Array)
#9
/var/www/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83):
Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#10 phar:///usr/bin/drush/commands/core/drupal/environment.inc(131):
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array,
true)
#11 phar:///usr/bin/drush/commands/core/drupal/environment.inc(198):
drush_module_install(Array)
#12 phar:///usr/bin/drush/commands/pm/pm.drush.inc(1167):
drush_module_enable(Array)
#13 phar:///usr/bin/drush/includes/command.inc(422):
drush_pm_enable('abilways_defaul...')
#14 phar:///usr/bin/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#15 phar:///usr/bin/drush/includes/command.inc(199):
drush_command('abilways_defaul...')
#16 phar:///usr/bin/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#17 phar:///usr/bin/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#18 phar:///usr/bin/drush/includes/startup.inc(458): drush_main()
#19 phar:///usr/bin/drush/includes/startup.inc(365):
drush_run_main(false, '/', 'Phar detected. ...')
#20 phar:///usr/bin/drush/drush(114): drush_startup(Array)
#21 /usr/bin/drush(10): require('phar:///usr/bin...')
#22 {main}
Comment | File | Size | Author |
---|---|---|---|
#27 | 2867579-core83-27.patch | 11.07 KB | andypost |
| |||
#27 | interdiff.txt | 374 bytes | andypost |
#26 | 2867579-core83-26.patch | 11.08 KB | andypost |
| |||
#26 | interdiff.txt | 2.8 KB | andypost |
Comments
Comment #2
andypostComment #4
andypostFix tests
Comment #5
larowlanlooks good, thanks @andypost
Comment #6
andypostbtw Sometimes I receive
`The database connection is not serializable
debug leads to
Comment #7
andypostre-roll
Comment #8
andypostreverted service provider needs fix
Comment #9
andypostComment #10
pmaguniaWhen I try to apply the patch from comment #8 and #4 to latest dev, I'm getting a message that says:
fatal: corrupt patch at line 173
The error still appears if the Taxonomy module is disabled.
Comment #11
wengerk@pmagunia It's because you apply the patch using the
8.x-1.0-alpha5
version and the given patch2867579-core83-8.patch
is based on the last commits that is not in the tagged version :D.I just create a patch for people from the
8.x-1.0-alpha5
to the compatible version (21/04/2017 - commit 2c9aad8).Patch from 8.x-1.0-alpha5 to patched version
Comment #13
pmagunia@wengerk, thanks for the hint although I'm almost sure I applied to the latest dev (not alpha5).
Comment #14
andypostReroll for current dev
I think better to keep tests compatible at least til 8.4 (may need new postponed issue)
Comment #16
andypostFix tests
Comment #17
alexpottI think you should add a dependency on core >= 8.3.0
Comment #18
alexpottI.e. add the following dependency to the .info.yml
Comment #19
andypostHere's fix for #18 (guess 8.3.1 better)
Comment #20
waspper CreditAttribution: waspper as a volunteer and at Skilld commentedComment #21
larowlanDo we need this now that we're enforcing it via the .info file - I don't think we do?
Comment #22
andypostReverted
Comment #23
alexpottI'd be a bit more liberal here - like the composer.json... so
= 8.3.x)
Comment #24
andypostthat's it)
Comment #25
andypostAccording https://www.drupal.org/docs/8/creating-custom-modules/let-drupal-8-know-...
Comment #26
andypostAnd fix leftover codestyle issues
I think it's ready for commit and next alpha release should be out
Comment #27
andypostAnd finally no reason for system module dependency
Comment #28
larowlanComment #29
larowlan