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

console cache:clear no longer possible since v2.6 #243

Open
ureimers opened this issue Apr 24, 2018 · 0 comments
Open

console cache:clear no longer possible since v2.6 #243

ureimers opened this issue Apr 24, 2018 · 0 comments

Comments

@ureimers
Copy link

Hi,

first of all, thank you for this very nice plugin!

Since version 2.6 I'm having the problem that I can't clear the cache on the command line any longer.

I know that stack traces are ugly nevertheless that's the only information I got:

app/console cache:clear

// Clearing the cache for the dev environment with debug true

[Symfony\Component\Debug\Exception\ContextErrorException]
  Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time


Exception trace:
 () at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php:51
 Symfony\Component\Debug\ErrorHandler->handleError() at n/a:n/a
 ini_set() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php:51
 Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler->__construct() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:8816
 appDevDebugProjectContaine_->getSession_HandlerService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:8846
 appDevDebugProjectContaine_->getSession_Storage_NativeService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:8806
 appDevDebugProjectContaine_->getSessionService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:8503
 appDevDebugProjectContaine_->getSecurity_Csrf_TokenManagerService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:10879
 appDevDebugProjectContaine_->getTwigService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/cache/symfony/cache/de_/appDevDebugProjectContaine_.php:1159
 appDevDebugProjectContaine_->getAssetic_AssetManagerService() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:297
 Symfony\Component\DependencyInjection\Container->get() at /var/www/html/vendor/symfony/assetic-bundle/CacheWarmer/AssetManagerCacheWarmer.php:33
 Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer->warmUp() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:48
 Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:144
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->warmup() at /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:96
 Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:242
 Symfony\Component\Console\Command\Command->run() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:861
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:84
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
 Symfony\Component\Console\Application->run() at /var/www/html/app/console:29

Although the BazingaJsTranslationBundle isn't mentioned, it's the cause of the error. As soon as I revert back to v2.5 the error is gone and I can clear the cache again.

So the question is: What changed between v2.5 and v2.6 that could cause this error?

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

1 participant