Skip to content

[Symfony\Component\DependencyInjection\Exception\InactiveScopeException] You cannot create a service ("request") of an inactive scope ("request") #8214

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

Closed
PaddyLock opened this issue Jun 6, 2013 · 5 comments

Comments

@PaddyLock
Copy link

I'm experiencing an error with Symfony 2.2.3 (I had to move back to 2.2.2) when clearing cache

php app/console -v cache:clear
Clearing the cache for the dev environment with debug true

[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]

You cannot create a service ("request") of an inactive scope ("request").

Exception trace:
() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:2051
ap_DevDebugProjectContainer->getRequestService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129
Symfony\Component\DependencyInjection\Container->get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:1544
ap_DevDebugProjectContainer->getFragment_HandlerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129
Symfony\Component\DependencyInjection\Container->get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:3324
ap_DevDebugProjectContainer->getTwigService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129
Symfony\Component\DependencyInjection\Container->get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:307
ap_DevDebugProjectContainer->getAssetic_AssetManagerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129
Symfony\Component\DependencyInjection\Container->get() at /Users/patricklock/Sites/cplus-security/vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetManagerCacheWarmer.php:33
Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer->warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:117
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:83
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244
Symfony\Component\Console\Command\Command->run() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:899
Symfony\Component\Console\Application->doRunCommand() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:184
Symfony\Component\Console\Application->doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at /Users/patricklock/Sites/cplus-security/app/console:22

@hacfi
Copy link
Contributor

hacfi commented Jun 6, 2013

Duplicate of #7636

@fabpot
Copy link
Member

fabpot commented Jun 13, 2013

I don't see any change in 2.2.3 that can explain this. Are you sure you're talking about the right versions of Symfony?

@PaddyLock
Copy link
Author

actually in my composer.yml I had "symfony/symfony": "2.2.*", with "minimum-stability": "alpha",
so what version would that have been?

@fabpot
Copy link
Member

fabpot commented Jun 13, 2013

@PaddyLock it depends on when you tried that. Can you try now and report if you still have the problem?

@PaddyLock
Copy link
Author

@fabpot I have just changed back to 2.2.* and ran composer update and can't reproduce the error. I'll close the issue.

thanks

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

3 participants