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

php app/console self:rightGroup:toggle username rightgroupname : erreur #1090

Open
xophe86 opened this issue Jul 11, 2018 · 2 comments
Open

Comments

@xophe86
Copy link

xophe86 commented Jul 11, 2018

Bonjour,
nous avons suivi votre readme.md. Nous avons installé et configuré Php 7.0, MariaDB, Nginx et Php-Fpm.

En essayant d'éxecuter php app/console self:rightGroup:toggle admin_self rightgroupname j'obtiens le message d'erreur suivant

PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Innova\SelfBundle\Manager\Right\RightGroupManager::toggleAll() must be an instance of Innova\SelfBundle\Entity\Right\RightGroup, null given, called in /var/www/html/self/src/Innova/SelfBundle/Command/RightGroupToggleCommand.php on line 32 in /var/www/html/self/src/Innova/SelfBundle/Manager/Right/RightGroupManager.php:38
Stack trace:
#0 /var/www/html/self/src/Innova/SelfBundle/Command/RightGroupToggleCommand.php(32): Innova\SelfBundle\Manager\Right\RightGroupManager->toggleAll(Object(Innova\SelfBundle\Entity\User), NULL)
#1 /var/www/html/self/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(256): Innova\SelfBundle\Command\RightGroupToggleCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/self/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(849): Symfony\Component\Console\Command\Com in /var/www/html/self/src/Innova/SelfBundle/Manager/Right/RightGroupManager.php on line 38

Pouvez-vous m'aider ? Merci d'avance

@xophe86
Copy link
Author

xophe86 commented Jul 11, 2018

Je précise que j'ai pris la branche Master du GitHub.

OS: Debian 9
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies
Symfony version 2.7.9 - app/dev/debug

@arnaudbey
Copy link
Contributor

Bonjour

Il faut remplacer "righgroupname" par le nom d'un groupe de permissions ('rightgroup.tasks', 'rightgroup.tests', 'rightgroup.sessions', 'rightgroup.groups', 'rightgroup.users','rightgroup.exports')

bon courage !

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