Problem/Motivation

I'm currently working on incorporating ECA into a Drupal site template, using more than a dozen ECA models. Three of them trigger fatal errors during the installation however. The errors thrown look like this:

ResponseText: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "eca_workflow_transition:session_acceptance" plugin does not exist. Valid plugin IDs for Drupal\Core\Action\ActionManager are: easy_email_send,...

Steps to reproduce

Use the development version of event_platform_starter which is currently at https://git.drupalcode.org/project/event_platform_starter/-/merge_reques... and requires https://git.drupalcode.org/sandbox/mandclu-3576733/-/commit/b125ca567af5.... I intend to promote this to a full project soon and cut a release soon but for now the project includes a later commit which includes the fix suggested in the MR here, so to reproduce the error it's helpful to use a version without the fix. This helper module can be pulled into a fresh install of Drupal CMS as a custom module for now. Run the installer and select the Event Platform site template. Observe that it throws three fatal errors.

Proposed resolution

Add a workflow_insert hook to the existing eca_workflow submodule.

Issue fork eca-3577088

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mandclu created an issue. See original summary.

mandclu’s picture

Status: Active » Needs work

The MR created here seems to work, but the unit tests need some attention to pass again.

mandclu’s picture

Status: Needs work » Needs review

The tests are all passing now, so this is ready for review.

jurgenhaas made their first commit to this issue’s fork.

  • jurgenhaas committed 9f11fb53 on 3.1.x authored by mandclu
    #3577088 \PluginNotFoundException: The "eca_workflow_transition:...
jurgenhaas’s picture

Version: 3.0.x-dev » 3.1.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: +backport

This is great, thanks @mandclu and @phenaproxima for providing this. I've re-targeted this for 3.1.x and will then backport to 3.0.x

  • jurgenhaas committed 00ab8b07 on 3.0.x
    #3577088 \PluginNotFoundException: The "eca_workflow_transition:...
jurgenhaas’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.