Tag Archives: cache clear

Fix The parameter “debug.error_handler.throw_at” must be defined in Symfony2

If you get this error when trying to clear a Symfony2 application cache:

$ php app/console cache:clear --env=prod --no-debug 


[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] The parameter "debug.error_handler.throw_at" must be defined.

This is the solution: delete the cache folder content and warmup de cache:

$ rm -rf app/cache/*
$ php app/console cache:warmup --env=prod

symfony-cache-clear

Ref: http://stackoverflow.com/a/27215486