Hi After a fresh CVS update today, we get the following error HTML::Template::param() : attempt to set parameter 'todayissues' with an array ref - parameter is not a TMPL_LOOP! at /home/koha/intranet/cgi-bin/circ/circulation.pl line 291 [Tue Jun 3 12:54:57 2003] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: /home/koha/intranet/cgi-bin/circ/circulation.pl and the famous "INTERNAL SERVER ERROR" message. Circulation worked fine before the update.... Can someone please fix it ? Thanks Jerome
Jerome Vizcaino wrote:
Hi
After a fresh CVS update today, we get the following error
HTML::Template::param() : attempt to set parameter 'todayissues' with an array ref - parameter is not a TMPL_LOOP! at /home/koha/intranet/cgi-bin/circ/circulation.pl line 291 [Tue Jun 3 12:54:57 2003] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: /home/koha/intranet/cgi-bin/circ/circulation.pl
and the famous "INTERNAL SERVER ERROR" message.
Circulation worked fine before the update.... Can someone please fix it ?
Chris, from katipo, NZ, worked on it a few days ago. Seems he made something wrong... but at the moment, he's sleeping :-) cc of this mail to chris. -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
On Tue, Jun 03, 2003 at 01:39:48PM +0200, paul POULAIN said:
Jerome Vizcaino wrote:
Hi
After a fresh CVS update today, we get the following error
HTML::Template::param() : attempt to set parameter 'todayissues' with an array ref - parameter is not a TMPL_LOOP! at /home/koha/intranet/cgi-bin/circ/circulation.pl line 291 [Tue Jun 3 12:54:57 2003] [error] [client XXX.XXX.XXX.XXX] Premature end of script headers: /home/koha/intranet/cgi-bin/circ/circulation.pl
and the famous "INTERNAL SERVER ERROR" message.
Circulation worked fine before the update.... Can someone please fix it ?
Chris, from katipo, NZ, worked on it a few days ago. Seems he made something wrong... but at the moment, he's sleeping :-)
Hi All What you'll need to do is update your circulation.tmpl file as well. The file is in cvs but perhaps you didnt update the directory where the templates are in your website? I did some work shifting html out of circulation.pl into circulation.tmpl as a result you need to update both. Hope this helps Chris -- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
Chris Cormack wrote:
Chris, from katipo, NZ, worked on it a few days ago. Seems he made something wrong... but at the moment, he's sleeping :-)
Hi All
What you'll need to do is update your circulation.tmpl file as well. The file is in cvs but perhaps you didnt update the directory where the templates are in your website?
I did some work shifting html out of circulation.pl into circulation.tmpl as a result you need to update both.
Hope this helps
Chris
Note this does not help if they use FRENCH templates, as I didn't upgrade them for instance. However, that may be the best reason. Jerome : it would be a good job to report the diffs into french and commit them as you've an accound iirc :-) ah. i forget : good morning chris. As reminder : cc from chris recent commit : Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/circ In directory sc8-pr-cvs1:/tmp/cvs-serv9201/koha-tmpl/intranet-tmpl/default/en/circ Modified Files: circulation.tmpl Log Message: Shifted the todays issues and previous issues html out into the template And fixed a bug that was causing the enter a borrowers card or surname box to show. Even if you were currently issuing to a borrower Index: circulation.tmpl =================================================================== RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/circ/circulation.tmpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** circulation.tmpl 26 Apr 2003 04:57:54 -0000 1.6 --- circulation.tmpl 30 May 2003 20:37:09 -0000 1.7 *************** *** 142,145 **** --- 142,148 ---- </table> <TMPL_ELSE> + <TMPL_IF NAME="borrowernumber"> + + <TMPL_ELSE> <form method=post action=/cgi-bin/koha/circ/circulation.pl> <table border=1 cellpadding=5 cellspacing=0 bgcolor="#dddddd"> *************** *** 158,163 **** --- 161,168 ---- </table> </form> + </TMPL_IF> </TMPL_IF> <TMPL_IF name="borrowernumber"> + <TMPL_VAR name="patrontable"> <TMPL_VAR name="flaginfotable"> *************** *** 230,234 **** <th>Due Date</th><th>Bar Code</th><th>Title</th><th>Author</th><th>Class</th> </tr> ! <TMPL_VAR name="todayissues"> </table> </TMPL_IF> --- 235,246 ---- <th>Due Date</th><th>Bar Code</th><th>Title</th><th>Author</th><th>Class</th> </tr> ! <TMPL_LOOP name="todayissues"> ! <tr><td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dd"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor"> align=center> ! <a href="/cgi-bin/koha/detail.pl?bib=<TMPL_VAR NAME="biblionumber">&type=intra" onClick="openWindow(this, 'Item', 480, 640)"><TMPL_VAR NAME="barcode"></a></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="title"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="author"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dewey"> <TMPL_VAR NAME="subclass"></td></tr> ! </TMPL_LOOP> </table> </TMPL_IF> *************** *** 245,249 **** <th>Due Date</th><th>Bar Code</th><th>Title</th><th>Author</th><th>Class</th> </tr> ! <TMPL_VAR name="previssues"> </table> </TMPL_IF> --- 257,269 ---- <th>Due Date</th><th>Bar Code</th><th>Title</th><th>Author</th><th>Class</th> </tr> ! <TMPL_LOOP name="previssues"> ! <tr><td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dd"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor"> align=center> ! <a href="/cgi-bin/koha/detail.pl?bib=<TMPL_VAR NAME="biblionumber">&type=intra" onClick="openWindow(this, 'Item', 480, 640)"><TMPL_VAR NAME="barcode"></a></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="title"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="author"></td> ! <td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dewey"> <TMPL_VAR NAME="subclass"></td></tr> ! </TMPL_LOOP> ! </table> </TMPL_IF> -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
hi Problem solved. We were working on another template ( no french for the moment, sorry paul :) ), and we didn't updated it. It's now done. thanks for your help !
participants (4)
-
Chris Cormack -
Jerome Vizcaino -
Lerenard Michel -
paul POULAIN