FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » error reporting
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
error reporting [message #179701] Fri, 23 November 2012 16:01 Go to next message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
I have two systems - development and test.

When I run a script with an error on the development system it
reports the error. When I run it on the test system it just
quietly fails.

The scrips start with
session_start ();
error_reporting(E_ALL);

Where should I look to find out why the test system is not
reporting errors ?

bill
Re: error reporting [message #179702 is a reply to message #179701] Fri, 23 November 2012 16:32 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Fri, 23 Nov 2012 11:01:28 -0500 bill <william(at)TechServSys(dot)com> wrote:

>
> I have two systems - development and test.
>
> When I run a script with an error on the development system it
> reports the error. When I run it on the test system it just
> quietly fails.
>
> The scrips start with
> session_start ();
> error_reporting(E_ALL);
>
> Where should I look to find out why the test system is not
> reporting errors ?

Look in the /etc/php.ini files on the two systems for the Error
handling and logging sections:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

And compare the settings in the test and development systems. Note that
for a *production* system you don't want to *display* errors, but it
might make sense to *log* them. Logged messages will land in Apache's
error_log (generally in /var/log/httpd/error_log on most Linux systems).

If the errors are happening in the session_start code, that won't be
reported unless the /etc/php.ini file enables error reporting. I don't
know if putting the error_reporting() call *before* the session_start()
call will work or not -- that might be all you need to do.

>
> bill
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Re: error reporting [message #179711 is a reply to message #179701] Mon, 26 November 2012 10:42 Go to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Nov 23, 4:01 pm, bill <will...@TechServSys.com> wrote:
> I have two systems - development and test.
>
> When I run a script with an error on the development system it
> reports the error.  When I run it on the test system it just
> quietly fails.
>
> The scrips start with
> session_start ();
> error_reporting(E_ALL);
>
> Where should I look to find out why the test system is not
> reporting errors ?
>
> bill

The php manual page on error_reporting also refers you to the
display_errors setting,.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Tokenize an HTML page.
Next Topic: Analista Programador JR ou PL
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 21:21:35 GMT 2024

Total time taken to generate the page: 0.02590 seconds