0

Whenever I have an "Fatal error" I'm expecting a nice layout in symfony's debug mode (eg:frontend_dev.php/module/action) with a stacktrace, but what I see is really a terribly unformatted page with continuous text.

If I try this without the _dev specified, meaning without debug turned on, I see a plain white page. I was expecting a symfony 500 page or something similar. I'm not too sure how to debug this or what i did to cause it.

If however, I manually throw an exception everything works as expected. I see a pretty 500 page in prod mode and a nicely formatted page for the stacktrace.

dartarrow
  • 77
  • 1
  • 4

1 Answers1

0

Fatal errors should not be caught, this is why there won't be any formatting for them: Symfony cannot transform them as Exceptions and format them nicely. If you want something prettier, you can set html_errors to On and install XDebug.

Community
  • 1
  • 1
greg0ire
  • 22,714
  • 16
  • 72
  • 101