Page 1 of 1

not seeing any errors

Posted: Thu Jan 09, 2003 9:05 am
by ridwan
I have made sure that both my internet explorer displays non-friendly error messages and that php.ini will display all error messages. Why can I still not see any error messages. I'm sure I've done anything possible; is there anything else I should consider?

Posted: Thu Jan 09, 2003 10:36 am
by mydimension
what kind of errors are you looking for?

if you're looking for php errors and php.ini is set to display all errors (even minor warnings) and yet still not seeing any then your code is syntactly correct.

if you are looking for JavaScript errors then you change the settings in your browser to display all errors and don't forget to turn debugging on (IE only I believe). again, if your not seeing any errors then you code runs fine through the script engine.

however, if your code is not doing what you want then you have a logic error which the script parser cannot detect. why don't you better explain what your problem is then we may be able to help you.

Posted: Fri Jan 10, 2003 2:39 am
by twigletmac
Also although you may have turned error reporting in the php.ini to its highest level, you may not have turned display_errors on (it's off by default in the recommended php.ini).

Mac

i did edit my php.ini

Posted: Fri Jan 10, 2003 3:40 am
by ridwan
i did edit my php.ini in my winnt folder to show all errors and I need to see the errors that my php code will give me cos when I take out important syntax in my code it doesn't display anything and before I re-setup my apahce and php it used to give me proper error messages detailing the problem, so I'm sure there's something that I haven't done correctly.....

Posted: Fri Jan 10, 2003 3:45 am
by twigletmac
What are the values that you have for the following within your php.ini?
  • display_errors
  • error_reporting
Mac

the following:

Posted: Fri Jan 10, 2003 3:58 am
by ridwan
1)error_reporting = E_ALL & E_NOTICE
2)display_errors = On

Posted: Fri Jan 10, 2003 5:03 am
by volka
this will only print messages of the cat. E_NOTICE. Probably you wanted E_ALL & ~E_NOTICE.
check the actual value of error_reporting with

Code: Select all

<?php phpinfo() ?>
I set error_reporting = E_ALL; and phpinfo() tells error_reporting 2047

YESS

Posted: Fri Jan 10, 2003 8:06 am
by ridwan
Great that worked; that was it :lol: