not seeing any errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ridwan
Forum Commoner
Posts: 55
Joined: Thu Aug 22, 2002 3:15 am

not seeing any errors

Post 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?
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
ridwan
Forum Commoner
Posts: 55
Joined: Thu Aug 22, 2002 3:15 am

i did edit my php.ini

Post 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.....
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What are the values that you have for the following within your php.ini?
  • display_errors
  • error_reporting
Mac
ridwan
Forum Commoner
Posts: 55
Joined: Thu Aug 22, 2002 3:15 am

the following:

Post by ridwan »

1)error_reporting = E_ALL & E_NOTICE
2)display_errors = On
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
ridwan
Forum Commoner
Posts: 55
Joined: Thu Aug 22, 2002 3:15 am

YESS

Post by ridwan »

Great that worked; that was it :lol:
Post Reply