Jump to content

Archived

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

Jim from Oakland

crosspost: no error messages: makes debugging fun!

Recommended Posts

Team AphpACHE

 

On Windows XP Home (development only) I have been trying to get php (Apache?) to show error messages in my browser.

 

I changed the php.ini (shown below). I issue commands in code (shown below) to tell php to show errors, yet when an error occurs the screen goes blank.

 

Might I need Apache settings, do I need some sort of \"template\" (html?) document?

 

Jim

 

--------

 

*** CODE *** I use to verify that settings change, they do.

 

error_reporting(E_ALL);

Echo \'<br>error_reporting = ALL: \' . error_reporting();

 

error_reporting(0);

Echo \'<br>error_reporting = NONE: \' . error_reporting();

 

Here are *** php ini *** settings.

display_errors = On

display_startup_errors = On

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off

track_errors = Off

 

Not set (php initial settings/default)

;docref_root = /phpmanual/

;docref_ext = .html

;error_prepend_string = \"<font color=ff0000>\"

;error_append_string = \"</font>\"

;error_log = filename

;error_log = syslog

Share this post


Link to post
Share on other sites

error_reporting(0); are you leaving this line in with the other E_ALL line?

Share this post


Link to post
Share on other sites

no i just did that to verify that my code was actually affecting settings.

 

I turned \"ALL\" on then checked the status then I turned everything off and checked again. It changed so I know code is working.

 

In the actual script I set it to ALL.

 

For the record my php.ini settings are

error_reporting = E_ALL

display_errors = On

display_startup_errors = On

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off

track_errors = Off

 

I must be missing something basic? Is there something in Apache I should look at?

 

Thanks sooo much.

Share this post


Link to post
Share on other sites

×

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.