Dear List,

With Template Toolkit 2.22 and Apache::Template 2.00_01 (from 
http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-Template-2.00_01.tar.gz),
 
I get a strange error message whenever I include "TT2Param" in my 
configuration:

[Tue Nov 17 12:13:06 2009] -e: Odd number of elements in anonymous hash 
at 
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Template/Config.pm 
line 227.

That line of Config.pm (Template::Config lists itself as version 2.75) 
contains

        ref($_[0]) eq 'HASH'

and if I replace that by

        UNIVERSAL::isa( $_[0], 'HASH' )

things start to work (actually, the same error happens further on in the 
sequence, but if I change _that_ and then the next and the next, it 
looks like something is going to work out).

I feel like I'm just missing some simple patch or something.  I dumbed 
down the configuration from my original lofty attempts just to

PerlLoadModule Apache::Template
TT2Debug On
TT2Params env
<Location /*.tt2>
   SetHandler perl-script
   PerlHandler Apache::Template
</Location>

Can anyone give me some advice?

Thanks,

dave

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to