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

error create new brand #209

Open
web4Sylius opened this issue Jan 10, 2023 · 5 comments
Open

error create new brand #209

web4Sylius opened this issue Jan 10, 2023 · 5 comments

Comments

@web4Sylius
Copy link

Hello !

When i press "create" for new brand, i have this error :

Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /home/ /sylius/vendor/loevgaard/sylius-brand-plugin/src/Menu/BrandFormMenuBuilder.php on line 70

thanks

@Tsolmonx
Copy link

yeah me too

@gansky-alexander
Copy link

try to update your bundles.php
put Loevgaard\SyliusBrandPlugin\LoevgaardSyliusBrandPlugin::class => ['all' => true], before Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],

@zchermit
Copy link

The same issue. I added LoevgaardSyliusBrandPlugin before SyliusGridBundle.
I think the problem is here: https://github.com/loevgaard/SyliusBrandPlugin/blob/master/src/Menu/BrandFormMenuBuilder.php#L62
I use Symfony 6.*. The LegacyEventDispatcherProxy is deprecated. So, the dispatcher should looks like the condition mentioned above is true.

@hous04
Copy link

hous04 commented Aug 2, 2023

Me to, the same error

@Pikapat
Copy link

Pikapat commented Nov 21, 2023

I also still have this error

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

6 participants