use 2.0.0-alpha1 to drupal 10.3.dev error

Created on 7 May 2024, 7 months ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

Error: ECA ran into error from third party in the context of "Collecting all available events": Since symfony/dependency-injection 6.4: "Symfony\Component\DependencyInjection\ContainerAwareTrait" is deprecated, use dependency injection instead.

Steps to reproduce

  1. $ composer create-project drupal/recommended-project:10.3.x-dev@dev "myproject"
  2. $ composer require 'drupal/eca:^2.0@alpha'
  3. $ composer require 'drupal/bpmn_io:^2.0@alpha'
  4. enable all eca module and bpmn module
  5. goto /admin/config/workflow/eca click "add new model"

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇳China xiukun.zhou

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @xiukun.zhou
  • Assigned to Rajan Kumar@2026
  • Issue was unassigned.
  • 🇩🇪Germany jurgenhaas Gottmadingen

    We're tying to catch more potential errors from plugins, and it seems, that doesn't work in all cases yet.

    There should be a longer error message to provide more details. Is that the case for you, and could you then share the full error message?

    If not, please provide a list of contrib modules that you have installed.

  • Status changed to Postponed: needs info 7 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
  • 🇺🇸United States sea2709 Texas

    I run into this issue as well. I haven't figured out the root cause yet, but the issues go away if I disable the module ECA_Queue. Just want to share my debugging screenshot that I found out it was from ECA_Queue module.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    @sea2709 Have you tried this with the latest beta release? That shouldn't be an issue there.

  • 🇬🇧United Kingdom ORION web

    I've tried the latest beta version but I'm getting the same error when hitting "+ Add new model" on /admin/config/workflow/eca/add/bpmn-io:

    Error: ECA ran into error from third party in the context of "Collecting all available events": Declaration of Drupal\openai_eca\Plugin\Action\OpenAIActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): Drupal\eca\Plugin\Action\ActionBase must be compatible with Drupal\eca\Plugin\Action\ActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static Error: ECA ran into error from third party in the context of "Collecting all available conditions": Declaration of Drupal\openai_eca\Plugin\Action\OpenAIActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): Drupal\eca\Plugin\Action\ActionBase must be compatible with Drupal\eca\Plugin\Action\ActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static Error: ECA ran into error from third party in the context of "Collecting all available actions": Declaration of Drupal\openai_eca\Plugin\Action\OpenAIActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): Drupal\eca\Plugin\Action\ActionBase must be compatible with Drupal\eca\Plugin\Action\ActionBase::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition): static

    The following modules are enabled, version 2.0.0-beta1:

    • ECA Core
    • ECA Content
    • ECA UI
    • ECA BPMN
    • BPMN.iO for ECA
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Thanks @ioanmar, that is a different error, but there output from ECA is from the same error handler. It is determining of a plugin from another module has an issue.

    Declaration of Drupal\openai_eca\Plugin\Action\OpenAIActionBase::create
    

    This means that a plugin from openai is having a problem, that needs to be fixed there. Please report to the maintainers of that module.

  • 🇬🇧United Kingdom ORION web

    Agreed @jurgenhaas, thank you.

  • 🇺🇸United States sea2709 Texas

    I confirmed that the issue went away after I upgraded ECA to beta2. I was on beta1 before the upgrade.
    Thanks @jurgenhaas!

  • Status changed to Fixed 4 months ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024