Jump to content

Error Reporting stopped working


EchoFool

Recommended Posts

For some irritating reason error reporting stopped working for the second time... it used to report errors now i just get white page of nothingness!

 

I hate this right at the top of my page:

 

As i am session 2 - only isee the errors so normal users do not!

 

<?php
//connect
session_start();
If(isset($_SESSION['Current_User']) && $_SESSION['Current_User'] == 2){
error_reporting(E_ALL);
ini_set('display_errors',1);
}
?>

 

 

But doesn't show any thing now when i make an error why is this ? I should note it happens on mysql errors only. Even with    " Or die(mysql_error());"

 

Hope you can help.

Link to comment
https://forums.phpfreaks.com/topic/185965-error-reporting-stopped-working/
Share on other sites

I should note it happens on mysql errors only. Even with    " Or die(mysql_error());"

 

Also, mysql errors are NOT php errors and aren't effected by error_reporting levels set within php, also die() doesn't trigger an error, simply kills the script and echos whatever argument you give it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.