No Error Messages

This is a discussion on No Error Messages within the PHP General forums, part of the PHP Programming Forums category; Hi, Recenly I face very disturbing problem. If page has some errors it stop producing any error messages. Neither page ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-31-2006
Sancar Saran
 
Posts: n/a
Default No Error Messages

Hi, Recenly I face very disturbing problem.

If page has some errors it stop producing any error messages. Neither page nor
syslog.

I get blank page.

System
Debian Unstable
Apache 2
Php 5.1.6

Apc
Memcached
Obhandler with gzip
and I store entire page output then printed out.

And I found if my error on first pages there was no problem, error message
show in page and syslog and if that eroor is in included files. I get
absolutely Nothing.

Does any one give any clue about it.

Regards

Sancar
Reply With Quote
  #2 (permalink)  
Old 10-31-2006
Jochem Maas
 
Posts: n/a
Default Re: [PHP] No Error Messages

Sancar Saran wrote:
> Hi, Recenly I face very disturbing problem.
>
> If page has some errors it stop producing any error messages. Neither page nor
> syslog.
>
> I get blank page.
>
> System
> Debian Unstable
> Apache 2
> Php 5.1.6
>
> Apc
> Memcached
> Obhandler with gzip
> and I store entire page output then printed out.
>
> And I found if my error on first pages there was no problem, error message
> show in page and syslog and if that eroor is in included files. I get
> absolutely Nothing.
>
> Does any one give any clue about it.


probably your error_reporting level or display_errors setting is not what you
think it is at the time the include occurs/runs.

alternatively something (3rd party) maybe setting an error handler that is
trapping your errors but not showing/logging them

lastly maybe your output buffer is the problem ... you might try a registering a
shutdown function that clears/outputs all buffers so that it is run
even if an error occurs.

>
> Regards
>
> Sancar
>

Reply With Quote
  #3 (permalink)  
Old 10-31-2006
clive
 
Posts: n/a
Default Re: [PHP] No Error Messages

Sancar Saran wrote:

> If page has some errors it stop producing any error messages. Neither page nor
> syslog.


have you looked at the error_reporting setting in your php.ini file.

perhaps set it too E_ALL, mine was set to E_ALL & ~E_NOTICE by default
on ubuntu 6.10.

>

Reply With Quote
  #4 (permalink)  
Old 10-31-2006
Richard Lynch
 
Posts: n/a
Default Re: [PHP] No Error Messages

On Tue, October 31, 2006 6:24 am, Sancar Saran wrote:
> If page has some errors it stop producing any error messages. Neither
> page nor
> syslog.
>
> I get blank page.


If it's a fatal error, or one too serious to be trapped by an error
handler, then your script will just stop.

> System
> Debian Unstable
> Apache 2
> Php 5.1.6
>
> Apc
> Memcached
> Obhandler with gzip
> and I store entire page output then printed out.


You may have installed something which does something like:
while (ob_get_level()) ob_end_flush();

> And I found if my error on first pages there was no problem, error
> message
> show in page and syslog and if that eroor is in included files. I get
> absolutely Nothing.


The included files could easily be re-setting your error handling, or
an included file *BEFORE* the one you are examining could do it:

<?php
require 'include_file_that_resets_error_reporting.inc';
require 'include_file_that_generates_error_you_are_worried _about.inc';
?>

PEAR error handling did this to me years ago, so I wasted more time
figuring out what was going on than it would have taken me to solve
the original problem I wanted PEAR for, and that's one of the reasons
I never use PEAR much. [shrug]

Back then, the PEAR error handler was tightly-woven into the whole
thing. Or maybe I'm thinking of phpLib on that one...

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
  #5 (permalink)  
Old 10-31-2006
Børge Holen
 
Posts: n/a
Default Re: [PHP] No Error Messages

PHP 5.1 is broken in debian testing right now. Dunno 'bout Sid

On Tuesday 31 October 2006 18:00, Richard Lynch wrote:
> On Tue, October 31, 2006 6:24 am, Sancar Saran wrote:
> > If page has some errors it stop producing any error messages. Neither
> > page nor
> > syslog.
> >
> > I get blank page.

>
> If it's a fatal error, or one too serious to be trapped by an error
> handler, then your script will just stop.
>
> > System
> > Debian Unstable
> > Apache 2
> > Php 5.1.6
> >
> > Apc
> > Memcached
> > Obhandler with gzip
> > and I store entire page output then printed out.

>
> You may have installed something which does something like:
> while (ob_get_level()) ob_end_flush();
>
> > And I found if my error on first pages there was no problem, error
> > message
> > show in page and syslog and if that eroor is in included files. I get
> > absolutely Nothing.

>
> The included files could easily be re-setting your error handling, or
> an included file *BEFORE* the one you are examining could do it:
>
> <?php
> require 'include_file_that_resets_error_reporting.inc';
> require 'include_file_that_generates_error_you_are_worried _about.inc';
> ?>
>
> PEAR error handling did this to me years ago, so I wasted more time
> figuring out what was going on than it would have taken me to solve
> the original problem I wanted PEAR for, and that's one of the reasons
> I never use PEAR much. [shrug]
>
> Back then, the PEAR error handler was tightly-woven into the whole
> thing. Or maybe I'm thinking of phpLib on that one...
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?


--
---
Børge
Kennel Arivene
http://www.arivene.net
---
Reply With Quote
  #6 (permalink)  
Old 11-01-2006
Sancar Saran
 
Posts: n/a
Default Re: [PHP] No Error Messages

On Tuesday 31 October 2006 19:00, Richard Lynch wrote:
Hi again,

Its my bad, sorry for interruption, I use ajax things and use E_ALL error
level. Sometimes I use @ before variables to disable notices because it
creates problem in ajax.

And this time I use @ for my entire Page containers. And naturally all my
errors was gone.

And this was very good lesson to me, do not use shortcuts, use proper vay.
Like $variable='';

Thanks for help.

Regards

Sancar
> On Tue, October 31, 2006 6:24 am, Sancar Saran wrote:
> > If page has some errors it stop producing any error messages. Neither
> > page nor
> > syslog.
> >
> > I get blank page.

>
> If it's a fatal error, or one too serious to be trapped by an error
> handler, then your script will just stop.
>
> > System
> > Debian Unstable
> > Apache 2
> > Php 5.1.6
> >
> > Apc
> > Memcached
> > Obhandler with gzip
> > and I store entire page output then printed out.

>
> You may have installed something which does something like:
> while (ob_get_level()) ob_end_flush();
>
> > And I found if my error on first pages there was no problem, error
> > message
> > show in page and syslog and if that eroor is in included files. I get
> > absolutely Nothing.

>
> The included files could easily be re-setting your error handling, or
> an included file *BEFORE* the one you are examining could do it:
>
> <?php
> require 'include_file_that_resets_error_reporting.inc';
> require 'include_file_that_generates_error_you_are_worried _about.inc';
> ?>
>
> PEAR error handling did this to me years ago, so I wasted more time
> figuring out what was going on than it would have taken me to solve
> the original problem I wanted PEAR for, and that's one of the reasons
> I never use PEAR much. [shrug]
>
> Back then, the PEAR error handler was tightly-woven into the whole
> thing. Or maybe I'm thinking of phpLib on that one...

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0