loevgaard / SyliusBrandPlugin

A Sylius plugin to enable the association of brands to your products
MIT License
30 stars 29 forks source link

error create new brand #209

Open web4Sylius opened 1 year ago

web4Sylius commented 1 year ago

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 commented 1 year ago

yeah me too

gansky-alexander commented 1 year ago

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

zchermit commented 1 year ago

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 commented 1 year ago

Me to, the same error

Pikapat commented 9 months ago

I also still have this error