Skip to content

Impossible de créer un nouveau rôle

En admin, la méthode de création des rôles retourne un code 500 :

[Wed Jul 12 13:13:51 2017] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Oscar\Entity\Role::__construct(), 0 passed in /home/jacksay/Projects/Unicaen/oscar/module/Oscar/src/Oscar/Controller/AdministrationController.php on line 423 and exactly 1 expected in /home/jacksay/Projects/Unicaen/oscar/module/Oscar/src/Oscar/Entity/Role.php:33 Stack trace: #0 /home/jacksay/Projects/Unicaen/oscar/module/Oscar/src/Oscar/Controller/AdministrationController.php(423): Oscar\Entity\Role->__construct() #1 (closed) /home/jacksay/Projects/Unicaen/oscar/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(82): Oscar\Controller\AdministrationController->roleAPIAction() #2 (closed) [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #3 (closed) /home/jacksay/Projects/Unicaen/oscar/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #4 (closed) /home/jacksay/Projects/Unicaen/oscar/vendor/zendframework/zendframe in /home/jacksay/Projects/Unicaen/oscar/module/Oscar/src/Oscar/Entity/Role.php on line 33

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information