Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

On cache clear: Cannot redeclare class FOS\RestBundle\Controller\ExceptionController #414

Closed
lennddotcom opened this Issue · 2 comments

3 participants

Lennd Lukas Kahwe Smith Josh Parolin
Lennd

I'm getting the following error when trying to clear my cache after recently updating my bundles. Looks the culprit is this bundle? Any ideas?


Joshuas-MacBook-Pro:site.com_symfony2 user$ php app/console cache:clear --verbose
Clearing the cache for the dev environment with debug true

Fatal error: Cannot redeclare class FOS\RestBundle\Controller\ExceptionController in /Users/user/Sites/site.com_symfony2/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/Controller/ExceptionController.php on line 257

Call Stack:
0.0012 230952 1. {main}() /Users/user/Sites/site.com_symfony2/app/console:0
0.0202 1673808 2. Symfony\Component\Console\Application->run() /Users/user/Sites/site.com_symfony2/app/console:22
0.0232 1867624 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:105
0.2146 7687768 4. Symfony\Component\Console\Application->doRun() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:78
0.2170 7689664 5. Symfony\Component\Console\Command\Command->run() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:192
0.2173 7694168 6. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:238
0.2330 7834568 7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:83
0.2347 7856952 8. Symfony\Component\HttpKernel\Kernel->boot() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:110
0.2353 7879768 9. Symfony\Component\HttpKernel\Kernel->initializeContainer() /Users/user/Sites/site.com_symfony2/app/bootstrap.php.cache:573
2.8018 29339432 10. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /Users/user/Sites/site.com_symfony2/app/bootstrap.php.cache:873
3.0098 34237880 11. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->warmUp() /Users/user/Sites/site.com_symfony2/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47
3.0098 34237984 12. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->findControllerClasses() /Users/user/Sites/site.com_symfony2/vendor/jms/di-extra-bundle/JMS/DiExtraBundle/HttpKernel/ControllerInjectorsWarmer.php:29

Lukas Kahwe Smith
Owner

still seeing this issue?

Josh Parolin

This is fixed after running a 'composer update' a few days after the problem started. Must have been a bug in another package. Thanks @lsmith77.

Lukas Kahwe Smith lsmith77 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.