[Koha-win32] OPAC Error for users having books issued - fix

John Choo anchovies00 at yahoo.com
Wed Oct 24 03:15:54 CEST 2007


Hi all,

Previously there was a few users that had this problem of logging into the
user's account and the users are with items loaned to them. No error if
you've not borrowed any item.
I did not encounter that problem and could not reconstruct it on my PC,
however the developer's koha forum had a posting on the fix. I've included
the 2 files that has been fixed according to the posting there (the posting
which I've also attached below for your ref.). I could not verify that this
fix works - because I don't encounter the problem but thought it might be
useful for the handful of people with that problem.

http://www.nabble.com/file/p13377267/opac-user.tmpl opac-user.tmpl  - file
in folder C:\usr\koha228\opac\htdocs\opac-tmpl\npl\en
http://www.nabble.com/file/p13377267/opac-user.pl opac-user.pl  - file in
folder C:\usr\koha228\opac\cgi-bin\koha

You can try downloading and replacing these 2 files above. Let me know the
results.

Attached below is the posting from the developer's koha forum:
Date: Sat, 20 Oct 2007 22:07:06 +1000
From: "Simon Mitchell" <simon at jseb.com>
Subject: [Koha-devel] opac login error for customer with item already  
check    out
To: koha-devel at nongnu.org

Hi every one,

My koha problem -  opac login error for customer with item already check
out.

I did find that solution to my koha 2.2.9 opac problem that was posted on
the katipo list, but is was very hard to find.

So am posting it here so the next time it will be easy to find it.

My setup -
Koha 2.2.9 NPL template Ubuntu 7.10 mysql v5
Linux library 2.6.22-14-server #1 SMP Wed Oct 10 06:35:59 GMT 2007 i686
GNU/Linux
library:~$ mysql --version
mysql  Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i486) using readline 5.2

opac error log
[Fri Oct 19 13:20:18 2007] [error] [client 59.167.xxx.xxx]
HTML::Template->output() : fatal error in loop output :
HTML::Template::param() : attempt to set parameter 'reserves' with an array
ref - parameter is not a TMPL_LOOP! at
/usr/local/share/perl/5.8.8/HTML/Template.pm line 3069, referer:
http://123.243.5.81:8003/cgi-bin/koha/opac-user.pl
[Fri Oct 19 13:20:18 2007] [error] [client 59.167.xxx.xxx]  at
/usr/local/koha/opac/cgi-bin/opac-user.pl line 166, referer:
http://123.243.5.81:8003/cgi-bin/koha/opac-user.pl
[Fri Oct 19 13:20:18 2007] [error] [client 59.167.xxx.xxx] Premature end of
script headers: opac-user.pl, referer:
http://123.243.5.81:8003/cgi-bin/koha/opac-user.pl

Chris had kindly put a solution in this email, is it ok in the next release?

Thanks all.
Regards,
Simon

http://lists.katipo.co.nz/public/koha/2007-June/011850.html

------------------------------

Message: 2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ok,

So this is bizarre, If I change
$template->param(RESERVES => $reserves);
to
$template->param(RESERVE => $reserves);
In opac-user.pl

And then change
<!-- TMPL_LOOP NAME="RESERVES" -->
to
<!-- TMPL_LOOP NAME="RESERVE" -->
in opac-user.tmpl

Suddenly the error goes away.
If either of you could confirm this works for you, that would be
great, and ill commit it to cvs, so that it comes out in the next
version ... weird

Chris
--
Chris Cormack                            chris.cormack at liblime.com
<http://lists.katipo.co.nz/mailman/listinfo/koha>
VP Research and Development                        www.liblime.com
LibLime                                            +64 21 542 131
-- 
View this message in context: http://www.nabble.com/OPAC-Error-for-users-having-books-issued---fix-tf4681438.html#a13377267
Sent from the Koha - Win32 mailing list archive at Nabble.com.






More information about the Koha-win32 mailing list