Hello, 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. 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. Thanks! Amy C. Schuler Manager of Information Services Cary Institute of Ecosystem Studies PO Box AB, 2801 Sharon Turnpike Millbrook, New York, 12545
How are u accessing the item? 2011/4/13 Amy Schuler <schulera@caryinstitute.org>:
Hello,
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.
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.
Thanks!
Amy C. Schuler
Manager of Information Services
Cary Institute of Ecosystem Studies
PO Box AB, 2801 Sharon Turnpike
Millbrook, New York, 12545
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Tomas, I log in to koha staff interface, search for record, click on "edit items", pull up item screen and click on "edit" for an existing item (I needed to add a barcode to an existing item, which is how I first came across this problem). I can add an item without encountering any problem. I just can't edit it. Thanks! -----Original Message----- From: Tomas Cohen Arazi [mailto:tomascohen@gmail.com] Sent: Wednesday, April 13, 2011 2:15 PM To: Amy Schuler Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Software error: Can't find method "fields" How are u accessing the item? 2011/4/13 Amy Schuler <schulera@caryinstitute.org>:
Hello,
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.
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.
Thanks!
Amy C. Schuler
Manager of Information Services
Cary Institute of Ecosystem Studies
PO Box AB, 2801 Sharon Turnpike
Millbrook, New York, 12545
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
2011/4/14 Amy Schuler <schulera@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
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@bigballofwax.co.nz] Sent: Wednesday, April 13, 2011 2:45 PM To: Amy Schuler Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Software error: Can't find method "fields" 2011/4/14 Amy Schuler <schulera@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
On 15 Apr 2011 07:36, "Amy Schuler" <schulera@caryinstitute.org> wrote:
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.
Hi Amy Glad to hear you are up and running again, I will be pushing more patches up over the next 10 days or so, catching any glitches before release, I would encourage you to keep an eye on the commit log at http://git.koha-community.org and get an upgrade run if there are commits showing up that fix template issues. The beauty of Koha is we develop in the open, nothing is hidden so you can see what is going on at any time. I commend you on learning more about the process and getting involved. Koha grows through its strong and vibrant community, and the best users are the ones who invest the time in asking questions. Naku Noa Na Chris
participants (3)
-
Amy Schuler -
Chris Cormack -
Tomas Cohen Arazi