We're developing a new site in Symfony. When Symfony encounters an error, such as a "no route found", and debug is set to true, it not only outputs a 404 code, it actually shows the error on the page. Firefox displays what the server returned, but Chrome does not.
For my no route found example:
Firefox shows this: http://i.imgur.com/myF85Sl.png
Chrome shows this: http://i.imgur.com/hex19In.png
Is there a way to get Chrome to behave like Firefox under these conditions?
Edit: There seems to be some questioning of what's actually happening. I don't know what's causing this, otherwise I would fix it. Here's what I see in the Chrome network inspector (note that this image is for a 500 error, but the same happens with 404's): http://i.imgur.com/VIOWGRy.png
Notice the content length of zero. If I go to the exact same URL through Firefox (same server, everything), it shows the actual Symfony error.
There is a bug report raised for this:
Issue 1695: Chrome needs option to turn off "Friendly 404" displays
According to the comments on that issue, if the server error page is more than 512 bytes, then it gets displayed correctly.
That said, I can't actually reproduce the problem, so I'm not sure if that workaround actually fixes it.
Under the monolog config in your config_dev.yml, remove the firephp/chromephp sections.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With