Jump to content


Photo

crosspost: no error messages: makes debugging fun!


  • Please log in to reply
2 replies to this topic

#1 Jim from Oakland

Jim from Oakland
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 08 May 2003 - 05:16 PM

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

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 09 May 2003 - 12:07 AM

error_reporting(0); are you leaving this line in with the other E_ALL line?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 Jim from Oakland

Jim from Oakland
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 09 May 2003 - 12:21 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users