Mailing List Archive

understanding optReturnError
Hi,

I'm setting EMBPERL_OPTIONS with optReturnError but when I provoke an
error in an embperl page apache didn't seem to get the error because
it reports OK (200) with 0 bytes length:

access_log:

192.168.0.3 - 3756b340cc25ff95 [29/May/2000:13:42:38 +0200] "GET /project/member
.html HTTP/1.0" 200 0

error_log:

[Mon May 29 13:42:37 2000] [error] [15715]ERR: 24: Line 1: Error in Perl code:
Can't locate object method "xx" via package "CS::KKB" at /aecc/Projekte/Web/Comm
unity/release1/htdocs_dev/project/member.html line 23.

This is independent of ErrorDocument being set. Am I missing
something? I set the options to 264210.

Dirk
RE: understanding optReturnError [ In reply to ]
>
> This is independent of ErrorDocument being set. Am I missing
> something? I set the options to 264210.
>

Use 264208. You must not set the optDisableEmbperlErrorPage, because when
set, Embperl will not generate any error page (or return it to Apache), but
instead tries to display as much as possible of your page...

Gerald
RE: understanding optReturnError [ In reply to ]
Gerald Richter writes:
> >
> > This is independent of ErrorDocument being set. Am I missing
> > something? I set the options to 264210.
> >
>
> Use 264208. You must not set the optDisableEmbperlErrorPage, because when
> set, Embperl will not generate any error page (or return it to Apache), but
> instead tries to display as much as possible of your page...

Hmm, setting it to 264208 does not change the behaviour I had send in
the previous mail... Besides the doc says:

"optDisableEmbperlErrorPage: [...] This option has no effect if
optReturnError is set."

Dirk
RE: understanding optReturnError [ In reply to ]
> >
> > Use 264208. You must not set the optDisableEmbperlErrorPage,
> because when
> > set, Embperl will not generate any error page (or return it to
> Apache), but
> > instead tries to display as much as possible of your page...
>
> Hmm, setting it to 264208 does not change the behaviour I had send in
> the previous mail... Besides the doc says:
>
> "optDisableEmbperlErrorPage: [...] This option has no effect if
> optReturnError is set."
>

ok, you are right, maybe I should read my own documentation...

I have no problems here with optReturnError. It should set the status to 500
and not 200. Maybe there is an problem with your Apache/mod_perl. Does the
make test (errdoc/errdoc.htm) works for you. This test the optReturnError
under mod_perl. (it uses 262144 as option, but this should not make a
difference to yours options)

Gerald


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: understanding optReturnError [ In reply to ]
Gerald Richter writes:

> I have no problems here with optReturnError. It should set the status to 500
> and not 200. Maybe there is an problem with your Apache/mod_perl. Does the
> make test (errdoc/errdoc.htm) works for you. This test the optReturnError
> under mod_perl. (it uses 262144 as option, but this should not make a
> difference to yours options)

The test errdoc/errdoc.htm works in offline and in onlinde mode. This
is on modperl 1.21 and Embperl 1.2.1.

Where can I start to look to resolve the problem?

Dirk
RE: understanding optReturnError [ In reply to ]
> Gerald Richter writes:
>
> > I have no problems here with optReturnError. It should set the
> status to 500
> > and not 200. Maybe there is an problem with your
> Apache/mod_perl. Does the
> > make test (errdoc/errdoc.htm) works for you. This test the
> optReturnError
> > under mod_perl. (it uses 262144 as option, but this should not make a
> > difference to yours options)
>
> The test errdoc/errdoc.htm works in offline and in onlinde mode. This
> is on modperl 1.21 and Embperl 1.2.1.
>
> Where can I start to look to resolve the problem?
>

First make sure that optReturnError is really set for that document, by
inserting a

[+ $optReturnError +]

inside the document. This should give 1. If this is true, you may use
exactly same option value (262144) as the test.

Gerald