!!!Solved!!!

The code I was testing had a final catch 1000 lines down the code that
captured any raised exception. If that exception matched some rules
the catch block tried to send an email like:

$mail = "[email protected]"; //TODO(0.5): Mejorar
$CMD = "echo -e \"subject:Error Aplicaci'on Usuario\n\n$e\" | ".
     "/usr/sbin/ssmtp -f aplicacionAdministracion.$(hostname)@mail.net
-F $(hostname) $mail";
$output=shell_exec($CMD);

/usr/sbin/ssmtp was not instaled on the Cherokee server and that
raised a second exception with the error 40 commented!



On Tue, Jun 28, 2011 at 1:33 PM, ENRIQUE ARIZON BENITO
<[email protected]> wrote:
> Hi,
>
> I'm new to Cherokee. I'm testing it with some PHP apps of my own. It
> works fine but some times PHP errors get hidden and I the only error I
> can see in the /var/log/cherokee/cherokee.error file is a line similar
> to:
>
> {'type': "error", 'time': "28/06/2011 07:13:00.241", 'title': "Parsing
> error: unknown version", 'code': "handler_fcgi.c:83", 'error': "40",
> 'version': "1.0.8", 'compilation_date': "Jan 12 2011 03:02:28",
> 'configure_args': " '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS=' '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS='", 'backtrace': ""}
>
>
> I reloaded a few times the same page to get sure the error is not yet
> flushed to the log file and I also checked with a line similar to:
>
> find / -mmin -10
>
> to get sure the error was not beeing written to another file.
>
> Most of the time the PHP error (syntax error, ...) is printed to the
> log file and I can trace it, it's just those few times when the log
> only shows a 'error':"40" that I get lost with no clue about the error
> and I have to start adding "debug echo lines" to the PHP line where
> the error was thrown.
>
> Is there any way to solve this issue or it's just me that I doing
> something wrong?
>
> Thx in advance for any help, hint or link!
>
> Regards,
>
> Enrique
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to