Jump to content


PHP Display Errors


No replies to this topic

#1 Slightly Wonky Robob

    Not a Wonky Gent.

  • Administrator
  • 9333 posts

Posted 08 September 2010 - 22:36

For some reason, errors aren't showing up either on the page nor the error log. Instead, when an error occurs, I just get a blank page... couple with the non-existent error log, it makes debugging pretty much impossible. Here are the (error-related) settings I have in my php.ini:

error_reporting = E_ALL & E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
error_log = logs/error.log


phpinfo() confirms that the above settings are being loaded.

I'm pretty sure that when I first set up apache & php that errors did display; This was my first time using E_STRICT (I thought it would be good practice), and it caused one of my old websites to pretty much stop working due to the amount of errors. :confused:

Anyway, anyone got any ideas what could be causing this?

EDIT: This is on my PC, running Windows 7.

EDIT2: It would appear setting error reporting to on in the PHP file itself 'solves' the issue, although it would still be nice to know why errors aren't showing normally.

Edited by Bob, 08 September 2010 - 22:48.

Posted Image
F O R T H E N S
Posted Image



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users