[prev] [thread] [next] [Date index for 2005/05/02]
Template toolkit version 2.14, Fedora Core 3, Server version: Apache/1.3.33 (Unix) I'm trying to use Apache::Template, and I'm getting the following error when I request a page: [Mon May 2 10:38:05 2005] [error] Can't locate object method "template" via package "Template::Service" at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Apache/Template.pm line 81. Sure enough, it looks as if Apache::Template::hander is trying to use an object that's blessed to Template::Service, and Template::Service has no 'template' method. Suggestions? My httpd.conf file includes templatetoolkit.conf, which consists of: # add the following to your httpd.conf PerlModule Apache::Template # set various configuration options, e.g. TT2Trim On TT2PostChomp On TT2PreChomp On TT2EvalPerl On TT2IncludePath /home/james/banshee/cust/htdocs /home/james/banshee/cust/htdocs/nomera /home/james/banshee/cust/htdocs/date TT2Interpolate On TT2AnyCase On # now define Apache::Template as a PerlHandler, e.g. <Files *.tt2> SetHandler perl-script PerlHandler Apache::Template </Files> <Location /tt2> SetHandler perl-script PerlHandler Apache::Template </Location> - James _______________________________________________ templates mailing list templates@xxxxxxxxxxxxxxxx.xxx http://lists.template-toolkit.org/mailman/listinfo/templates
|
[Templates] Problem with Apache::Template - can't locate object method 'template'
|
Generated at 07:01 on 17 May 2005 by mariachi v0.52