Subject: | Apache::Template |
* Apache::Template 0.09
* Perl 5.8.8
* Apache/1.3.42 (Unix)
* Linux domU-12-31-38-00-B4-A8 2.6.16-xenU #1 SMP Mon May 28 03:41:49
SAST 2007 i686 athlon i386 GNU/Linux
A stock installation of Apache::Template on TT 2.22 would not
successfully load configuration options from httpd.conf (TT2Absolute,
TT2IncludePath, etc.). I tracked it down to this:
Template::Config->service is not expecting a blessed hashref, but
Apache::Template->handler feeds it one at line 69. Here's how I fixed it:
Template.pm
68,69c68,70
< my $service = $SERVICE->{ $r->hostname() } ||= do {
< my $cfg = Apache::ModuleConfig->get($r) || { };
---
Show quoted text
> my $service = $SERVICE->{ $r->hostname() } ||= do {
> my $bcfg = (Apache::ModuleConfig->get($r))[0] || { };
> my $cfg = { map {$_=>$bcfg->{$_}} keys %$bcfg};