I am trying to convert a simple session-based application under Mason and mod_perl from Debian Sarge (Apache1.3) to Debian Etch (Apache 2.2.3). There is an <%INIT> section in my main autohandler that reads and writes a simple session cookie containing only a session key, the key is then used to track all session data on the server side. If I comment out all the session code, then Mason operates as expected, so it seems that the Mason setup is okay. My biggest hurdle issue has been changes to the old Apache::Cookie package, which now (in Apache2::Cookie) seems to require passing in Mason's $r variable to access mod_perl's Apache request object. I *seem* to be able to write cookies OK with the new Apache2::Cookie->new and Apache2::Cookie->bake (at least I don't get errors and the page appears as expected under Firefox) but when I try to read the cookies with either Apache2::Cookie->fetch or APR::Request::Cookie->fetch, I get no errors, but Firefox gets a blank page. The page seems to load immediately (browser shows "done" at the bottom of the page right away), but "View source" shows nothing at all-- not even the <HTML></HTML> tags. It is as though the usual Mason error debugging mechanism is being bypassed and the output cache is being emptied and then transmitted somehow.

I have tried several other cookbook recipes I found on the net, including "my $req = APR::Request::Apache2->handle( $r ); " which produces exactly the same problem. I can't see anything in apache's access.log from these requests, but error.log contains several of the following entries (since they are not time-stamped I am assuming they relate, but there are not as many error messages as there are aborted requests):

/usr/sbin/apache2: symbol lookup error: usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: undefined symbol: apreq_handle_apache2

I am pretty new to Mason and would appreciate any pointers on what I am doing wrong.
--
Matt Warnock, President
RidgeCrest Herbals, Inc.
Tel: 801-978-9633
Fax: 801-978-9650

begin:vcard
fn:Matt Warnock
n:Warnock;Matt
email;internet:[EMAIL PROTECTED]
tel;work:801-978-9633
tel;fax:801-978-9650
x-mozilla-html:TRUE
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to