On 04/24/2008 04:03 AM, Dan Lobo wrote:
> Therefore I have set up the config file accordingly:
>
> #Example config file -- returns a hash reference
> return {
> title => 'Search Our Site',
> swish_index => '/home/cot.org.uk/bin/swish-e/public.index',
>
> template => {
> package => 'SWISH::TemplateToolkit',
> file => 'swish.tt',
> options => {
> INCLUDE_PATH =>
> '/home/cot.org.uk/bin/swish-e/lib/swish-e/perl',
> },
> },
> };
>
> The only bit I am not sure about is the include path!? What is this
> include path for?? I am guessing it is for the location of
> TemplateToolkit right?
It's for the location of swish.tt. INCLUDE_PATH is a Template::Toolkit config feature.
>
> Anyway, when I try to get the swish-e.cgi I get the following:
>
> *Software Error*
>
> Please check error log
>
> Upon inspection of the log I get the following being reported:
>
> [Wed Apr 23 11:12:13 2008] [error] [client 217.207.158.141]
> /var/www/vhosts/cot.org.uk/cgi-bin/swish.cgi Global symbol "%map_index"
> requires explicit package name at
> /usr/local/lib/swish-e/perl/SWISH/TemplateToolkit.pm line 138.
That looks like a bug to me.
Please change line 134 of /usr/local/lib/swish-e/perl/SWISH/TemplateToolkit.pm from this:
my (%map, $map_index);
to this:
my (%map, %map_index);
It's already fixed in SVN.
--
Peter Karman . peter(at)not-real.peknet.com . http://peknet.com/
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Apr 24 09:41:42 2008