Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Problems setting up SWISH::API and search.cgi

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Wed Nov 21 2007 - 13:25:16 GMT
Peter Karman wrote on 11/20/07 2:49 PM:
> 
> On 11/20/2007 02:23 PM, Parker, Peter A CONTRACTOR WRAIR-Wash DC wrote:
> 
>> [root@localhost ~]# /var/www/cgi-bin/search.cgi | head
>> Name "Template::ERROR" used only once: possible typo at
>> /var/www/cgi-bin/search.cgi line 279.
>> Can't locate object method "new" via package "Template" at
>> /var/www/cgi-bin/search.cgi line 278.
>>
>> line 278 --     $instance->{template_object} ||= Template->new(
>> INCLUDE_PATH => $config->{INCLUDE_PATH} ) 
>> line 279 --        || die $Template::ERROR, "\n";
>> The above lines are inside the generate_view() subroutine.
>>
> 
> you need a:
> 
>  use Template;
> 
> at or near the top of search.cgi most likely.
> 

hm. looks like 'use Template' is already in the default search.cgi example
script. Is that what you are using?

-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Nov 21 08:25:17 2007