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



You might also like

Fix “Cannot redeclare class Symfony…” in Symfony2 after upgrade
After upgrading from Symfony 2.2 to 2.3 I got this error in my application:Fatal error: Cannot redeclare...

Clear internal DNS cache in Google Chrome
I was moving a client's web from one hosting to another and after checking that the DNS registers have...

Fix apt-get “cannot copy extracted data for ‘…’ to ‘…’: unexpected end of file or stream”
I was doing an apt-get upgrade and got this error:Preparing to replace liborc-0.4-0:armhf 1:0.4.16-2...

Install a Symfony2 application using Composer
Before installing any Symfony2 project you have to meet the minimum requirements for it in your server....

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.