You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ben Kim <bk...@coe.tamu.edu> on 2006/02/09 21:25:21 UTC

error page problem

OK, here's some more details about the error page problem. It seems like a
problem related with Embperl. Could be my site specific.

The error pages going through embperl shows only once per child. 

Embperl seems to make a difference on 404 pages (I didn't do a test that
uses non-embperl for a 500 error.)

404 errors is handled as 500 by embperl
================

If html is handled by embperl (FilesMatch, etc.) 404 errors invoke a 500
error page. Also, only one access per child shows the custom error page.

If not handled by embperl, 404 errors invoke a 404 error page. All
repeated accesses show the custom error page.



500 errors show only once per child.
================

(I) If I use print $sql; +  exit(0) call: 

When custom error page shows (once per child), it prints out the sql with
the custom error page (although "not as part of the page" - I mean, it's
shown kind of "outside" the rendered custom page...)

But when custom error page does not show (subsequent accesses), it only
shows this. (print $sql does not work here.)

	[6589]ERR: 32: Warning in Perl code: DBD::Pg::st execute failed:
	ERROR: syntax error at or near "reviewerid" at character 10
	APR::Error=HASH(0xe6884c)

(II) If I use die "sql: $sql $@":

Regardless of whether custom error page shows or not, I get the sql.


The error page is still a problem. Could I get some help?


Thanks.

Ben K.
Developer
http://benix.tamu.edu



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org