500 custom error page in symfony 1.1

is symfony redirected to user error page if Fatal PHP error occurs?

+5
source share
2 answers

Yes, you can post files here

/www/site/web/errors/error500.php
/www/site/web/errors/unavailable.php

Details 19-Mastering-Symfony-s-Configuration-Files

+6
source

No, you need to set this at the Apache level.

And make sure it's a flat HTML page - if PHP is causing an error and you are trying to provide a page with a 500-page PHP code, you can get this error again, and Apache will find out that your error page is repeating and displays it anyway.

Example from a .htaccess file

ErrorDocument 500 /errors/500.htm
+3
source

All Articles