471,354 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

not getting error messages

Hi,

I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.

Thanks for any info,
lurisia
Jul 17 '05 #1
4 5928
lurisia wrote:
Hi,

I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.

Thanks for any info,
lurisia


Well for all errors

error_reporting = E_ALL

should be set

error_reporting = E_ALL & ~E_NOTICE

means all errors apart from notices.

~Cameron

Jul 17 '05 #2
Cameron,

Thanks for the info, though that didn't fix it. However, I did figure
out (just by scanning the code) what the error was which is not
getting reported. I left out the opening parentheses of an if
statement. Is it possible that php can't figure out what that error
is and therefore can't report? Seems unlikely, but I'm stumped as to
why that is coming up as an error. Any other ideas?

Thanks again,
Lurisia

On Sun, 01 Feb 2004 19:47:46 +0000, Cameron <fo*@bar.invalid> wrote:

Well for all errors

error_reporting = E_ALL

should be set

error_reporting = E_ALL & ~E_NOTICE

means all errors apart from notices.

~Cameron


Jul 17 '05 #3
On Sun, 01 Feb 2004 18:42:34 GMT, lurisia <he***@hello.com> wrote:
I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.

I have already tried making the following settings in php.ini:

display_errors = On
error_reporting = E_ALL & ~E_NOTICE

To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.


Find what PHP thinks error_reporting and display_errors are set to, using
phpinfo(). It may not be reading the php.ini file you modified.

Also set error_reporting to E_ALL during development.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Jul 17 '05 #4
Andy,

That was it. I was changing a backup copy of php.ini rather than the
one in "C:\WINDOWS". Thank you very much.

Lurisia

On Sun, 01 Feb 2004 20:49:45 +0000, Andy Hassall <an**@andyh.co.uk>
wrote:
Find what PHP thinks error_reporting and display_errors are set to, using
phpinfo(). It may not be reading the php.ini file you modified.

Also set error_reporting to E_ALL during development.


Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Martin | last post: by
2 posts views Thread by Marc Scheuner | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.