Bug 6196

Summary: cant edit items (Can't call method "subfield" error)
Product: Koha Reporter: Mason James <mtj>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED INVALID QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: P5 - low CC: chris, irfan.a.mirza, koha.sekjal, mshahi
Version: rel_3_2   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Mason James 2011-04-15 08:58:14 UTC
when editing an existing item on koha-3.2.6 (and 3.4 head)

i get this error when updating an item (but not others)

Software error:

Can't call method "subfield" on an undefined value at /home/mason/git/ebc/cataloguing/additem.pl line 607.

however, i have a created small patch to fix this problem, 

the patch has a more explicit check for the existent of a field, before attempting to access its subfields (which caused the error)

fyi: i rewrote the code block, so it now reads a little easier
Comment 1 Matthew 2011-10-11 15:40:08 UTC
I also get the following error, how can i solve it.

The following fatal error has occurred:

Can't call method "subfield" on an undefined value at /usr/share/koha/lib/C4/Biblio.pm line 2672.

Apache	Server version: Apache/2.2.16 (Debian) Server built: Sep 29 2011 20:59:05
Koha	4.02.00.006
Koha DB	4.0200006
MySQL	mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64) using readline 6.1
OS	Linux library 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64
Perl	5.010001
Comment 2 Owen Leonard 2011-10-11 15:49:34 UTC
> Koha    4.02.00.006

There is no Koha 4.02.00.006. It sounds like you're running a fork of Koha. If that's the case, then this isn't the right place to report bugs for it.
Comment 3 Mason James 2011-10-11 16:13:45 UTC
(In reply to comment #0)
> when editing an existing item on koha-3.2.6 (and 3.4 head)
> 
> i get this error when updating an item (but not others)
> 
> Software error:
> 
> Can't call method "subfield" on an undefined value at


the actual cause of my problem was some bad framework mapping, (linking a 999 field to an item.* column)

so im marking this one RESOLVED (aka: user error)
Comment 4 Mason James 2011-10-11 16:22:17 UTC
(In reply to comment #1)
> I also get the following error, how can i solve it.

Matthew, i would start by installing an official Koha release. 

Koha-3.4.5 was released 2 weeks ago -> http://koha-community.org/koha-3-4-5/
Comment 5 Matthew 2011-10-12 05:56:24 UTC
(In reply to comment #4)
> (In reply to comment #1)
> > I also get the following error, how can i solve it.
> 
> Matthew, i would start by installing an official Koha release. 
> 
> Koha-3.4.5 was released 2 weeks ago -> http://koha-community.org/koha-3-4-5/


What about koha at http://www.koha.org/ ? is it also Koha?
Comment 6 Chris Cormack 2011-10-12 06:38:09 UTC
No it is not, it is Liblimes fork, based on a version of Koha from a few years old.
Comment 7 Mason James 2011-10-12 08:45:25 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #1)
> > > I also get the following error, how can i solve it.
> > 
> > Matthew, i would start by installing an official Koha release. 
> > 
> > Koha-3.4.5 was released 2 weeks ago -> http://koha-community.org/koha-3-4-5/
> 
> 
> What about koha at http://www.koha.org/ ? is it also Koha?


Matthew

heres your support options from ptfs/liblime's KOHA.org website...

LiblimeKohaDiscussion mailing list
http://lists.liblime.com/cgi-bin/mailman/listinfo/liblimekohadiscussion

LibLime Koha Consulting Services: 
kohaconsulting@liblime.com

LibLime Koha Implementation Services: 
kohaimplementation@liblime.com

LibLime Koha Hosting and Support Services: 
kohasupport@liblime.com
Comment 8 Fridolin Somers 2012-07-25 12:03:34 UTC
*** Bug 8501 has been marked as a duplicate of this bug. ***