jmunozco
jmunozco

Reputation: 695

Symfony throws error but not 404 page

The problem is I see trace error pages in production mode, in Symfony app.

I have this in app.php:

$kernel = new AppKernel('prod', true);

And I have done:

php app/console cache:clear --env=prod

Upvotes: 0

Views: 128

Answers (1)

jmunozco
jmunozco

Reputation: 695

Ok, I was completely wrong! The purpose of the second parameter in $kernel = new AppKernel('prod', true); is to enable/disable the debug mode. You can read the doc here: https://symfony.com/doc/current/configuration/environments.html

The issue was solved by setting to false the debug mode.

Upvotes: 1

Related Questions