Problem/Motivation
When I try to install eca_push_framework I get this error:
Symfony\Component\DependencyInjection\Exception\RuntimeException: Service "eca_push_framework.subscriber": Parent definition "eca.execution.subscriber_parent" does not exist. in Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->doResolveDefinition() (line 75 of /path/to/public_html/vendor/symfony/dependency-injection/Compiler/ResolveChildDefinitionsPass.php).
This is in eca_push_framework.services.yml:
services:
eca_push_framework.subscriber:
class: Drupal\eca_push_framework\EventSubscriber\EcaPushFramework
parent: eca.execution.subscriber_parent
tags:
- { name: event_subscriber }
I can't find "eca.execution.subscriber_parent" or any reference to it anywhere else in my code.
Is this a bug or am I missing something?
Traceback:
Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->resolveDefinition() (Line: 44)
Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() (Line: 86)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() (Line: 35)
Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass->processValue() (Line: 47)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() (Line: 80)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 767)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1335)
Drupal\Core\DrupalKernel->compileContainer() (Line: 934)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 816)
Drupal\Core\DrupalKernel->updateModules() (Line: 608)
Drupal\Core\Extension\ModuleInstaller->updateKernel() (Line: 244)
Drupal\Core\Extension\ModuleInstaller->install() (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() (Line: 502)
Drupal\system\Form\ModulesListForm->submitForm()
call_user_func_array() (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 609)
Drupal\Core\Form\FormBuilder->processForm() (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
rclemings commentedComment #3
jurgenhaasAh, here comes loose dependency declaration: This version of Push Framework only works with ECA version 2. But since ECA is not a dependency of Push Framework, it cannot be declared in its composer.json, but we should have declared it in the
eca_push_framework.info.ymlfile.Comment #5
jurgenhaasFixed that for Push Framework 2.3.1 - if you want to use Push Framework and ECA 1 together, you would have to use version 2.2.9 for the time being. Rest assured, we're on ECA 2 right now and hope to release at least a beta asap.
Comment #6
rclemings commentedThanks. The downgrade appears to have worked, although composer put up a bit of a fight so I had to downgrade pf_email 2.3.0 => 2.1.2.