From: Paul F. <pa...@da...> - 2003-12-16 20:37:37
|
Paul Flinders wrote: > I'm trying to get PageKit 1.12 running with mod_perl2 - reading > the past postings Boris Zentner seems to have had some sucess > but I don't seem to be getting as far as he did with the example server. > > I get the following error when trying to load the first page of the > example > site > > FATAL: Usage: Apache::RequestRec::new(classname, c, base_pool=NULL) at > /usr/lib/perl5/site_perl/5.8.0/Apache/PageKit.pm line 154. > Apache::ErrorReport::fatal('Usage: > Apache::RequestRec::new(classname, c, base_pool=NULL) ...') called at > /usr/lib/perl5/site_perl/5.8.0/Apache/PageKit.pm line 197 > Apache::PageKit::handler('Apache::RequestRec=SCALAR(0x8131784)') > called at -e line 0 > eval {...} called at -e line 0 > Actually, the answer is in the mod_perl2 porting docs. The handler needs to be marked with the method attribute otherwise it is invoked as a non-member function and only gets passed the request object as a parameter (and not the class instance plus the request). I guess that Boris made the required change. |