[Koha] Software error: Can't find method "fields"
Amy Schuler
schulera at caryinstitute.org
Fri Apr 15 07:39:17 NZST 2011
Hi Chris,
Thanks for this extremely helpful information, not just the link to the patch (which worked, more on that in a moment) but also for all of the additional explanation about versioning. I hope everyone who relies on someone else to maintain their installation takes this as a good motivator for learning more about their Koha installation (and database management in general). As you may have guessed, I had not realized we were running the unstable version... irresponsible of me, but I am learning.
So like I said, the patch fixed that original error message but then I got this new one, here:
"Template process failed: file error - parse error - /home/koha/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt line 324: unexpected token (END)
[% END %] at /home/koha/kohaclone/C4/Templates.pm line 119."
We upgraded to 3.03.00.052 and now everything seems to be working smoothly.
Thanks again!
Amy
-----Original Message-----
From: Chris Cormack [mailto:chris at bigballofwax.co.nz]
Sent: Wednesday, April 13, 2011 2:45 PM
To: Amy Schuler
Cc: koha at lists.katipo.co.nz
Subject: Re: [Koha] Software error: Can't find method "fields"
2011/4/14 Amy Schuler <schulera at caryinstitute.org>:
> Hello,
Hi Amy
>
> I have come across the following error message when attempting to edit an
> item in the Koha staff interface. When in doubt about things Koha, I
> usually reindex, which is what I did but it did not solve the problem:
>
> “Can't call method "fields" on an undefined value at
> /home/koha/kohaclone/C4/Biblio.pm line 2097”
>
>
>
> I am running Koha v. 3.03.00.051 on Apache 2.2.9 (Debian). Note that I only
> get this error message when I select an item to edit – I am able to edit
> records without any problem.
>
Wow, that is very brave of you, running from the master (unstable)
branch, especially as 3.03.00.051 was when the Templating engine was
switched out. I do appreciate you running it and reporting any bugs,
but you or whoever maintains your installation will want to be doing
updates frequently as the master branch is changing a lot prior to the
release next week.
>
>
> I found some references to variations on this error in the Koha listserve
> archive and Bugzilla, but did not see a solution for this particular
> “fields” error.
>
Here's that exact error
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6171
It has had a patch pushed up into master, so if you update you git
checkout it should be fixed, if so you can mark this bug resolved fix.
An update is recommended anyway as a lot of other template related
bugs have been fixed between 051 and now. I see on the koha-patches
mailing list that a few more came in while I was asleep.
3.3.x (which 3.03.00.051 is part of) is will become 3.4.x .. and the
3.4.0 release on April 22 comes from there. The second number in the
version string in this case 03 lets you know if its stable or unstable
eg 3.02.xx.xxx is a 3.2.x version number. If the second number is even
its stable, if its uneven its unstable. That's not to stay we don't
strive to keep the unstable branch (master) as stable as possible but
there are times (like when you change out the underlying templating
system like now) that it will be unstable for a period.
I did send a mailing list to Koha-devel before the template switch,
warning that it was going to happen. as I assumed the people running
from git would be on there, bad assumption on my part.
Anyway, I'm glad most of it is working for you, and that this bug you
have found has already been fixed, please report any more you find and
link to bug 5917.
Thanks
Chris
More information about the Koha
mailing list