how to see all Web app 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
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

how to see all Web app errors?

Post by permutations »

How come other people see errors and warnings on Web pages I produce that I don't see? One person testing for me got a MySQL warning for a careless error I'd made, but didn't get the warning myself. Another time I forgot to upload the .css file with a project. The person testing it got a warning about the missing .css file, but I did not. He also got another warning I didn't see.

Is there some setting I need to change so I see these errors? I don't even see them when I access the sites from another computer on my network (not the development computer).

I have IE 5.5 and Mozilla.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Sometimes when you work locally you forget to make the file "web set" meaning the images and attachments like .css files are looking for the files in c:\apache\htdocs\site\whatever\ instead of /site/whatever/. I remember i did that a few times, maybe it's that...
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

I didn't even have a path specified for the .css file since everything was in the same subdirectory.

I did notice that in my browser I had the option to report all script errors turned off. Maybe that was my problem?
DaiWelsh
Forum Commoner
Posts: 36
Joined: Wed Jan 08, 2003 9:39 am
Location: Derbyshire, UK

Post by DaiWelsh »

That setting will relate to javascript/vbscript errors. In IE there is also an option called something like 'Show Friendly HTTP Error Messages'. Uncheck that to stop IE hiding the details of certain errors.

The mysql error should be a server-side setting and so the same for all clients, however whether the error is visible on-screen may depend on where in the page it occurs and what browser you use. Additionally it is possible that the error is specific to the user because of choices they made previously on the site?

The css error is more likely to be a browser issue, in my experience IE does not bother to tell you about missing CSS or javascript source files, but this could also be a setting somewhere and may be different with other browsers.

HTH

Dai
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

Thanks for the info. I looked and I do have "Show friendly HTTP error messages checked", so it's a mystery. Maybe I should download a few other browsers.
DaiWelsh
Forum Commoner
Posts: 36
Joined: Wed Jan 08, 2003 9:39 am
Location: Derbyshire, UK

Post by DaiWelsh »

Sorry, I may have been unclear, you want it unchecked to see the errors, having it checked will make it show 'friendly' errors in other words without the scary/useful technical information.

Regards,

Dai
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

Oh! Thanks for clarifying.
Post Reply