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.
Hi I have just updated this module and now I am getting this error:
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "config_import.features_importer" has a dependency on a non-existent service "features.manager". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences() (line 58 of /Users/leowoods/Sites/devdesktop/newsphere/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences(Array) (Line: 42)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processDefinition(Object) (Line: 36)
Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->process(Object) (Line: 104)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 590)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1263)
Drupal\Core\DrupalKernel->compileContainer() (Line: 866)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 461)
Drupal\Core\DrupalKernel->boot() (Line: 651)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Any idea what I should do to fix it?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#17 | confi-feature_importer_service-2850361-17.patch | 16.99 KB | BR0kEN |
|
Comments
Comment #2
BR0kENGuys has created a release and used services from modules which were not added as dependencies to
config_import.info.yml
. Actually they shouldn't be added, because they are optional. New feature, presented in latest release, - features importer - its implementation is too raw and was not tested for now.This patch solves the problem. New service will be added to DI container only when required modules (
features
andconfig_update
) will be installed. Also I've added some tests for this.Comment #4
BR0kENThis related issue causes test fails.
Comment #5
BR0kENOops, it's happened accidentally.
Comment #6
BR0kENComment #7
BR0kENThe same as #6, but with a bit improved code documentation.
Comment #9
BR0kENComment #11
BR0kENFixed small inconsistency in tests.
Comment #12
BR0kENRemoved unneeded files.
Comment #14
BR0kENRe-roll.
Comment #16
BR0kENThe only fail - is an error from
features
module.Comment #17
BR0kENComment #19
BR0kENComment #20
podarokI was expecting to get 2 lines of code for info.yml file for dependencies.
Never saw such an over engineered patch so far.
For the testing we'll try the release in 2-3 months or so
Thanks