Bug 3520 - crash when adding or editing item record
Summary: crash when adding or editing item record
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: PC All
: PATCH-Sent (DO NOT USE) blocker (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-11 02:46 UTC by Galen Charlton
Modified: 2019-06-27 09:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 01:11:41 UTC


---- Reported by gmcharlt@gmail.com 2009-08-11 14:46:12 ----

Adding or editing an item record in the staff interface results in the following crash:

Can't call method "append_fields" on an undefined value at /usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 92.
 at /usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 92

This is triggered if MARC::File::XML 0.91 or later is installed.  Investigation showed that TransformHtmlToXml(), used to convert the item form input to a MARCXML blob, was generating invalid XML by omitting the <record> element; as of MARC::File::XML 0.91, MARC::Record->new_from_xml() now expects to be given a valid MARCXML $blob, and crashes if it doesn't receive one.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 14:50:38 ----

Submitted patch.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 14:54:35 ----

Patch pushed.



---- Additional Comments From gmcharlt@gmail.com 2009-08-11 16:17:17 ----

Confirmed fixed by Garry Collum.



---- Additional Comments From martin.brenner@whitfieldschool.org 2009-10-01 21:12:07 ----

How do I get this patch? I am having this same problem. I appologize if this is a dumb question. I am new to Koha and have just installed it on Ubuntu 8.10.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:11 UTC  ---

This bug was previously known as _bug_ 3520 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3520

Actual time not defined. Setting to 0.0