View Full Version : Complete obliteration of errors
08-31-2007, 03:37 PM
My boyfriend works for a company where its impossible to get any error messages in PHP on their servers. And we have no idea why. He's tried setting the error reporting in the script and in a .htaccess - no errors at all.
This makes debugging exceptionally difficult as you might imagine.
So, anyone know how they are doing this and what we can do about it?
08-31-2007, 03:41 PM
vB hides them with output buffering. ob_start() at the beginning of the code, ob_end_clean() before outputting the template.
Check the error settings in the phpinfo() as well.
08-31-2007, 03:49 PM
Post the lines from the .htaccess file (the php constants E_ALL... are not available in a .htaccess file and cannot be used there.) I assume you are setting both display_errors and error_reporting?
A web host can specifically allow/prevent any setting in a .htaccess file, so a host could specifically disallow changes to display_errors and error_reporting.
Edit: Post the lines of code being added to the script as well. Unless there is a fatal parse error, resulting in a blank page, you can modify the error reporting settings at runtime, unless the host has specifically disabled the php commands needed to do so (which is unlikely as it would require disabling both ini_set() and error_reporting().)
08-31-2007, 04:02 PM
display_errors = on did the trick! Never had to do that one before.
They also had AllowOverride None set on the web root.
He's asked them to change it.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.