Skip to main content.
home | support | download

Back to List Archive

Re: Bug in TemplateToolkit.pm

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Sun Jan 28 2007 - 00:58:23 GMT
On Sat, Jan 27, 2007 at 01:17:53PM -0800, Michael Erdmann wrote:
> 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);

You changes the first line to the second line?

     my (%map, %map_index);
     my (%map, %map_index);

Huh?

-- 
Bill Moseley
moseley@hank.org

Unsubscribe from or help with the swish-e list: 
   http://swish-e.org/Discussion/

Help with Swish-e:
   http://swish-e.org/current/docs
   swish-e@sunsite.berkeley.edu
Received on Sat Jan 27 16:58:30 2007