Jump to content

seeing errors


stvchez

Recommended Posts

Perhaps a newbie question, but we've all gotta start somewhere.  I have an error in my page which is causing it to go blank (not very helpful in the debugging process).  I'm trying to invoke some error trapping code, ie:

 

ini_set("display_errors","2");

ERROR_REPORTING(E_ALL);

 

But, I keep just seeing a blank page as, most likely, an error exists.  if anyone could point me in the right direction, I'd greatly appreciate it.

Link to comment
https://forums.phpfreaks.com/topic/37504-seeing-errors/
Share on other sites

You can't always overwrite the settings in the php.ini file. What does your PHP info say for error_reporting and display_errors? A good value to set this in your php.ini file, is to "error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT" (2039). This will display only true errors, and ignore Warnings and Notices.

Link to comment
https://forums.phpfreaks.com/topic/37504-seeing-errors/#findComment-179358
Share on other sites

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.