Hi,
I did that and it said to check error log.
[Thu Mar 08 07:30:13 2007] [error] [client 198.54.202.234] swish.cgi
Can't locate HTML/Template.pm in @INC (@INC contains:
/usr/local/lib/swish-e/perl
/usr/lib/perl5/5.8.5/i386-linux-thread-multi.....
at /usr/local/lib/swish-e/perl/SWISH/TemplateHTMLTemplate.pm line 13.,...
Thu Mar 08 07:30:13 2007] [error] [client 198.54.202.234] BEGIN
failed--compilation aborted at
/usr/local/lib/swish-e/perl/SWISH/TemplateHTMLTemplate.pm line 13.,
hu Mar 08 07:30:13 2007] [error] [client 198.54.202.234] Compilation
failed in require at swish.cgi line 851...
swish.cgi - line 851 - eval { require "$package.pm" };
sub load_module {
my $package = shift;
$package =~ s[::][/]g;
eval { require "$package.pm" };
if ( $@ ) {
print <<EOF;
Content-Type: text/html
Are these issues related to Template::Toolkit? If I wanted to reinstall,
how should I go about this, so that the current installation is entirely
overwritten.
Regards
Clint
Bill Moseley wrote:
> On Thu, Mar 08, 2007 at 08:20:43AM +0200, Clint wrote:
>
>> Within swish.cgi in my cgi-bin, the following lines appear:
>>
>
> Remove the "x" from the one you want to use. Those are just examples
> of different template configurations.
>
> The hard-coded default is SWISH::TemplateDefault (which doesn't use an
> external template file like SWISH::TemplateToolkit or
> SWISH::TemplateHTMLTemplate.
>
> The other option is to define your template in an external config file
> as Jason showed.
>
>
>
>> ...
>> xtemplate => {
>> package => 'SWISH::TemplateDefault',
>> },
>>
>> xtemplate => {
>> package => 'SWISH::TemplateDumper',
>> },
>>
>> xtemplate => {
>> package => 'SWISH::TemplateToolkit',
>> file => 'swish.tt',
>> options => {
>> INCLUDE_PATH => '/usr/local/share/swish-e',
>> #PRE_PROCESS => 'config',
>> },
>> },
>>
>> xtemplate => {
>> package => 'SWISH::TemplateHTMLTemplate',
>> options => {
>> filename => 'swish.tmpl',
>> path => '/usr/local/share/swish-e',
>> die_on_bad_params => 0,
>> loop_context_vars => 1,
>> cache => 1,
>> },
>> },
>> ...
>> However, it refuses to use the templates, instead uses the Default template.
>>
>> I don't get any errors.
>>
>> Regards
>> Clint
>>
>>
>> Bill Moseley wrote:
>>
>>> On Wed, Mar 07, 2007 at 08:25:38AM +0200, Clint wrote:
>>>
>>>
>>>> I installed Swish-e 2.4.5 as an installation without root access and
>>>> replaced the swish.tt and swish.tmpl files with the ones from a previous
>>>> installation (we moved servers recently), but no matter what I do, the
>>>> results page remains the standard one. If I look inside swish.cgi,
>>>> situated in the cgi-bin directory, the paths for those templates are
>>>> correct, but still no luck. Have I missed a step, or how does one get
>>>> swish-e to use a custom results page?
>>>>
>>>>
>>> Are you sure you are looking at the correct script? Are you using
>>> Template::Toolkit or HTML::Template for your templates? Look at the
>>> top of swish.cgi and you should see "INCLUDE_PATH" (for .tt) or "path"
>>> (for .tmpl) -- that's where it's looking for your templates.
>>>
>>>
>>>
>>>
>
>
>> _______________________________________________
>> Users mailing list
>> Users@lists.swish-e.org
>> http://lists.swish-e.org/listinfo/users
>>
>
>
>
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Mar 8 02:44:36 2007