Skip to main content.
home | support | download

Back to List Archive

Bug in TemplateToolkit.pm

From: Michael Erdmann <michael_erdmann(at)not-real.t-online.de>
Date: Sat Jan 27 2007 - 21:18:08 GMT
I found a small bug in TemplateToolkit.pm. After I enabled the 
Template-Toolkit settings in swish.cgi, my webservers error.log told me:
----------------------------------------------
[Thu Jan 25 21:37:17 2007] [error] [client 127.0.0.1] Global symbol 
"%map_index" requires explicit package name at 
C:\\SWISH-E\\lib\\swish-e\\perl/SWISH/TemplateToolkit.pm line 140., 
referer: http://localhost/cgi-bin/swish.cgi...
[Thu Jan 25 21:37:17 2007] [error] [client 127.0.0.1] Global symbol 
"%map_index" requires explicit package name at 
C:\\SWISH-E\\lib\\swish-e\\perl/SWISH/TemplateToolkit.pm line 140., 
referer: http://localhost/cgi-bin/swish.cgi...
[Thu Jan 25 21:37:18 2007] [error] [client 127.0.0.1] Compilation failed 
in require at C:/Programme/xampp/cgi-bin/swish.cgi line 850., referer: 
http://localhost/cgi-bin/swish.cgi...
----------------------------------------------

So I modified line 134 in 
\SWISH-E\lib\swish-e\perl\SWISH\TemplateToolkit.pm like this to fix it: 
my (%map, %map_index);  => my (%map, %map_index);
Now the Template-Toolkit Template works fine.
Received on Sat Jan 27 13:18:09 2007