CodeIgniter Forums
catch compression related errors - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: catch compression related errors (/showthread.php?tid=47000)



catch compression related errors - El Forum - 11-22-2011

[eluser]Unknown[/eluser]
Hello,

Our production server has
Code:
compression_output
set to
Code:
true
. Now we've run in to instances where developers have pushed code to the production server with print_r or echo by mistake. This is causing the webserver to display a "white screen of death" with error message such as
Code:
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.


Is it possible to somehow catch that? so we can show a much friendlier error page?