Home »
Imported messages »
comp.lang.php »
error reporting
Re: error reporting [message #179702 is a reply to message #179701] |
Fri, 23 November 2012 16:32 |
Robert Heller
Messages: 60 Registered: December 2010
Karma:
|
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
|
|
|
Goto Forum:
Current Time: Thu Nov 28 10:52:23 GMT 2024
Total time taken to generate the page: 0.04926 seconds