<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
Hi Jethro,<BR>
<BR>
Had a similar problem a while back on both npl and default templates (i.e error when trying to login)-- koha 2.2.8 on Centos 4.4, perl 5.8.8 <BR>
<BR>
Solved it by downgrading my HTML::Template to a lower version I had (2.7 I think ...) and everything works just fine now<BR>
<BR>
On Thu, 2007-06-07 at 11:43 +1200, Jethro Carr wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">hi all,</FONT>

<FONT COLOR="#000000">I have a problem with a Koha 2.2.8 - when I log into the opac-user.pl  </FONT>
<FONT COLOR="#000000">page, I get an internal server error.</FONT>

<FONT COLOR="#000000">When I looked into the error log, I found the following:</FONT>

<FONT COLOR="#000000">HTML::Template-&gt;output() : fatal error in loop output :</FONT>
<FONT COLOR="#000000">HTML::Template::param() : attempt to set parameter 'reserves' with an  </FONT>
<FONT COLOR="#000000">array ref - parameter is not a TMPL_LOOP! at /usr/lib/perl5/site_perl/ </FONT>
<FONT COLOR="#000000">5.8.8/HTML/Template.pm line 3069, referer: <A HREF="http://xxxxx:8000/cgi-bin/"><font color="red"><b>MailScanner has detected a possible fraud attempt from "xxxxx:8000" claiming to be</b></font> http://xxxxx:8000/cgi-bin/</A> </FONT>
<FONT COLOR="#000000">koha/opac-user.pl</FONT>
<FONT COLOR="#000000">[Wed May 30 22:35:44 2007] [error] [client XXX.XXX.XXX.XXX] at /usr/ </FONT>
<FONT COLOR="#000000">local/koha/opac/cgi-bin/opac-user.pl line 160, referer: <A HREF="http://xxxxx"><font color="red"><b>MailScanner has detected a possible fraud attempt from "xxxxx" claiming to be</b></font> http://xxxxx</A>: </FONT>
<FONT COLOR="#000000">8000/cgi-bin/koha/opac-user.pl</FONT>
<FONT COLOR="#000000">[Wed May 30 22:35:44 2007] [error] [client XXX.XXX.XXX.XXX] Premature  </FONT>
<FONT COLOR="#000000">end of script headers: opac-user.pl, referer: <A HREF="http://xxxxx:8000/cgi"><font color="red"><b>MailScanner has detected a possible fraud attempt from "xxxxx:8000" claiming to be</b></font> http://xxxxx:8000/cgi</A>- </FONT>
<FONT COLOR="#000000">bin/koha/opac-user.pl</FONT>


<FONT COLOR="#000000">When I looked into the /usr/local/koha/opac/opac-user.pl file, I  </FONT>
<FONT COLOR="#000000">found I can prevent the errors if I comment out line 123. This then  </FONT>
<FONT COLOR="#000000">allows me to logon, but not view any reserves for the user.</FONT>
<FONT COLOR="#000000">123 #$template-&gt;param(RESERVES =&gt; $reserves);</FONT>


<FONT COLOR="#000000">Anyone come across this problem, or have any suggestions for me? It  </FONT>
<FONT COLOR="#000000">appears to be a software bug in Koha, but if that was the case, I  </FONT>
<FONT COLOR="#000000">would have expected other people to have found it as well....</FONT>


<FONT COLOR="#000000">Koha is installed on a CentOS/RHEL 5 server.</FONT>

<FONT COLOR="#000000">thanks,</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>