Joshua Keroes wrote:
I'm having some trouble getting the MasonHQ SiteSource code to run.
This is what happens when I fire up Apache.

[EMAIL PROTECTED]:/usr/local/anansi$ sudo bin/svrctl start dev
Password:
starting dev
[Wed May 12 09:40:17 2004] [error] Can't call method "register_cleanup"
on an undefined value at /usr/local/share/perl/5.8.3/CGI.pm line 318.\n
Compilation failed in require at /usr/local/anansi/conf/handler-dev.pl
line 12.\n

Per Jonathan Swartz's advice, I replaced handler-dev.pl with a Hello World handler and tried again:

   #!/usr/bin/perl
   use CGI;
   use strict;

   my $cgi = new CGI ({});

   sub handler
   {
       my ($r) = @_;

       $r->send_http_header;
       $r->print("Hello world!");

       return 200;
   }

Same error.


On May 18, 2004, at 10:51 PM, Stas Bekman wrote:
You can't cache CGI objects used for request parsing. Move that

   my $cgi = new CGI ({});

*inside* the handler. Apache->request is obviously not available at startup
time.


And you really want to start using the new syntax, CGI->new($r), since you
will want it for mp2 when you move to it.

Thanks, Stas -

That did the trick.

Cheers,
Joshua


-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to