Fatal error on ECA BPMN UI when eca_tamper is installed
Problem/Motivation
When eca_tamper is installed, a fatal error occurs when trying to create ECA configuration via BPMN UI:
The website encountered an unexpected error. Please try again later.
Error: Typed property Drupal\eca_tamper\Plugin\Action\Tamper::$tamperManager must not be accessed before initialization in Drupal\eca_tamper\Plugin\Action\Tamper->tamperPlugin() (line 60 of modules/contrib/eca/modules/tamper/src/Plugin/Action/Tamper.php).
Drupal\eca_tamper\Plugin\Action\Tamper->tamperPlugin() (Line: 94)
Drupal\eca_tamper\Plugin\Action\Tamper->defaultConfiguration() (Line: 25)
Drupal\eca\Plugin\Action\ConfigurableActionBase->setConfiguration(Array) (Line: 71)
Drupal\eca\Plugin\Action\ActionBase->__construct(Array, 'eca_tamper:sprintf', Array, Object, Object, Object, Object, Object) (Line: 87)
Drupal\eca\Plugin\Action\ActionBase::create(Object, Array, 'eca_tamper:sprintf', Array) (Line: 46)
Drupal\eca_tamper\Plugin\Action\Tamper::create(Object, Array, 'eca_tamper:sprintf', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('eca_tamper:sprintf', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('eca_tamper:sprintf') (Line: 61)
Drupal\eca\Service\Actions->actions() (Line: 406)
Drupal\eca_modeller_bpmn\ModellerBpmnBase->getTemplates() (Line: 62)
Drupal\bpmn_io\Plugin\ECA\Modeller\BpmnIo->edit() (Line: 75)
Drupal\bpmn_io\Controller\BpmnIo->add()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I wonder how this error was not reported / not happening on other installations?
Steps to reproduce
Proposed resolution
Remaining tasks
Fix the bug.
User interface changes
API changes
Data model changes
Edited by drupalbot