I am at wit's end.  Enclosed please find a mason handler script
I am trying to get running under Ubuntu 7.10.  The script is run
from .htaccess, and lives at /cgi-bin/mason_handler.cgi, where it is
called as it should be, but dies in the CGIHandler->new constructor
statement, with no error message whatsoever in either the apache logs or
the perl log opened earlier in the file.  A much shorther script, with
code identical to the constructor here, runs fine on another virtual
server, but it doesn't have the cookie/session code here.

I am at wit's end because I had all of this functionality working under
mod_perl, but it seems not to port.  MasonX::Apache::WithApacheSession
failed deep in its bowels with some kind of CGI incompatibility, despite
what the docs say.  Apache2::Session runs only under mod_perl.
CGI::Cookie apparently introduces an extra leading space before the
cookie value that breaks Apache::Session::File.  So I have manually
written the cookie code, using Apache::Session, and that portion works,
but breaks the Mason output somehow.

The symptom is that the page does not print (blank output).  If I
comment out the handler in .htaccess, the component renders fine, but
without Mason processing, so Apache can obviously read the files.  If I
comment it back in, the constructor crashes without warning in the Mason
logs created herein, and the Apache error log message is "premature end
of headers."  I disabled the outbound cookie header text (the last print
statement) to see whether outbound buffering was causing trouble, but I
get the same result with or without the final cookie output commented in
or out.  Thanks in advance, and sorry about the length of the code.
-  
Matt Warnock
RidgeCrest Herbals, Inc.

Attachment: mason_handler.20080421
Description: Perl program

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to