odiseoteam / SyliusRbacPlugin

This plugin provides basic roles and permissions management functionality for Sylius.
MIT License
3 stars 0 forks source link

Problem after installation #8

Open disvroian opened 3 years ago

disvroian commented 3 years ago

after an composer require odiseoteam/sylius-rbac-plugin ( sylius 1.10 )

I have the following error on cache cleaning Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1

The service "sylius_rbac.custom_factory.administration_role" has a dependency on a non-existent service "sylius_rbac.factory.administration_role".

vendor/odiseoteam/sylius-rbac-plugin/src/DependencyInjection/OdiseoSyliusRbacExtension.php on line 24

Isabellebengrine commented 2 years ago

Yes, same error (see capture) :

Capture d’écran 2022-01-12 à 10 27 57

Any solution ???? Thanks

diimpp commented 1 year ago

This happens due missing config import, which is not created by flex recipe after plugin installation.

Create new file config/packages/odiseo_sylius_rbac.yaml and add next snippet to solve the issue.

imports:
    - { resource: '@OdiseoSyliusRbacPlugin/Resources/config/config.yml' }
Isabellebengrine commented 1 year ago

This has been solved a long time ago but thanks for the reply anyway :-)

diimpp commented 1 year ago

@Isabellebengrine issue is not solved in the plugin, I encountered it just a few weeks ago.

My answer is for issue clarification.