Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A transition from a place/state must have an unique name #31

Open
migo315 opened this issue Oct 24, 2024 · 1 comment
Open

A transition from a place/state must have an unique name #31

migo315 opened this issue Oct 24, 2024 · 1 comment

Comments

@migo315
Copy link

migo315 commented Oct 24, 2024

Hey,

when I try to install the plugin, I get the following error:

!! In StateMachineValidator.php line 43:
!!
!! [Symfony\Component\Workflow\Exception\InvalidDefinitionException]
!! A transition from a place/state must have an unique name. Multiple transiti
!! ons named "complete" from place/state "new" were found on StateMachine "syl
!! ius_refund_refund_payment".
!!

Only when I completely comment out sylius_refund_refund_payment in vendor/sylius/refund-plugin/src/Resources/config/integrations/workflow.yaml does the error disappear.

Am I doing something wrong or do we have a bug in the plugin? I am using Sylius 1.13 and plugin version 5.7.0.

@logeecom
Copy link
Contributor

Hello @migo315,

This is the issue that exists in the Sylius 1.13 version. The issue is caused by a refund-plugin config file being imported twice. To prevent the issue from happening, navigate to acme/config/packages/sylius_refund.yaml and delete { resource: "@SyliusRefundPlugin/Resources/config/app/config.yml" }.

If you have any questions or concerns, please let us know.

Thank you,

Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants