Bug 2309 - Perl 5.10 conflicts with M:F:X: Cannot add Items after adding MARC Record
Summary: Perl 5.10 conflicts with M:F:X: Cannot add Items after adding MARC Record
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: rel_3_2
Hardware: PC All
: P3 major (vote)
Assignee: Galen Charlton
QA Contact:
URL: http://costis.name
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 06:07 UTC by Chris Cormack
Modified: 2012-10-25 23:31 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 00:49:12 UTC


---- Reported by costas.magnuse@gmail.com 2008-07-07 06:07:11 ----

Trying to add a MARC record, (I retrieved its data from a z30.50
server, but that does not matte)  I am getting an
error page (http://localhost:8080/cgi-bin/koha/cataloguing/additem.pl)
Its contents are:
"
Koha error
The following fatal error has occurred:
Can't call method "append_fields" on an undefined value at
/usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 95. at
/usr/local/lib/perl/5.10.0/XML/LibXML/SAX.pm line 64
 at /usr/local/share/perl/5.10.0/MARC/File/XML.pm line 443
Apache  Server version: Apache/2.2.9 (Debian) Server built: Jun 21 2008 10:35:35
Koha    3.00.00.094
Koha DB 3.0000094
MySQL   mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486)
using readline 5.2
OS      Linux sangre 2.6.25.9xx6-costis07 #1 SMP PREEMPT Wed Jul 2 02:35:38
EEST 2008 i686 GNU/Linux
Perl    5.010000
"

I have tried to enter simple values and words (and only in the
mandatory fields) instead of a z39.50 server retrieval based on ISBN,
but the same error occurs.

All the records I enter result to the same problem. For example I imported a Z39.50 search of ISBN: 0324171897 (Principles of Macroeconomics by N. Gregory Mankiw, that is), then I chose save and after that the items page
I complete it as you can see at http://www.costis.name/0various/Item1.png, but the error message persists (after clicking the button "Add Item", no matter what I do... Even if I let the Items page blank.


The last contens of /var/log/koha/koha-error_log are

[...] [error] [...] [...] addbiblio.pl: INDEXING :orignew at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :1 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :ocip at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :20 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :y-gencatlg at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :ddc at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :SR at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :pc15 2006-07-19 to
SSCD at /usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :jp00 2006-07-26 CIP
recd at /usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :jp20 2006-07-26 to
subj at /usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :jp03 2006-07-26 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :aa05 2006-07-27 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :1 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] addbiblio.pl: INDEXING :1 at
/usr/share/koha/lib/C4/Biblio.pm line 2319., referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [debug] mod_deflate.c(619): [...] Zlib: Compressed 37993 to 5966
: URL /cgi-bin/koha/cataloguing/additem.pl, referer:
http://localhost:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=0&z3950=1&frameworkcode=BKS&breedingid=1
[...] [error] [...] [...] additem.pl: Can't call method
"append_fields" on an undefined value at
/usr/local/share/perl/5.10.0/MARC/File/SAX.pm line 95. at
/usr/local/lib/perl/5.10.0/XML/LibXML/SAX.pm line 64, referer:
http://localhost:8080/cgi-bin/koha/cataloguing/additem.pl?biblionumber=1&frameworkcode=BKS
[...] [error] [...] [...] additem.pl:  at
/usr/local/share/perl/5.10.0/MARC/File/XML.pm line 443, referer:
http://localhost:8080/cgi-bin/koha/cataloguing/additem.pl?biblionumber=1&frameworkcode=BKS

What could I do to solve this problem?



---- Additional Comments From jmf@liblime.com 2008-07-07 22:45:26 ----

I suspect perl 5.10.0 and MARC::File::XML are in conflict. Unfortunately, not a simple fix, perhaps you can try to downgrade to Perl 5.8?



---- Additional Comments From jmf@liblime.com 2008-07-08 18:06:56 ----

I continue to suspect MARC::File::XML, and since this is a library issue, not a Koha issue, I'm going to remove it as a bug for Koha 3.0, and bump it to 3.2 (we may have resources in the Koha community to fix the bug, but not before 3.0 is released). I will add a note to the installation documentation warning about Perl 5.10



---- Additional Comments From ilorenzo@cetmar.org 2008-12-03 02:53:30 ----

What MARC::File::XML version?



---- Additional Comments From koha@brinkerhoff.org 2009-01-01 00:30:40 ----

This no longer seems to be a bug.

I setup Ubuntu 8.10 + Perl 5.10 and installed:

libmarc-charset-perl_1.0-1_all.deb                 
libmarc-record-perl_2.0.0-1_all.deb                
libmarc-xml-perl_0.88-1_all.deb                 
libsms-send-perl_0.05-1_all.deb  

And was able to add books through a Z39.50 search just fine.

stan@stan-ubuntu-810-koha-dev:~/koha/misc$ ./sax_parser_print.pl
XML::LibXML::SAX::Parser=HASH(0x99b2908)

stan@stan-ubuntu-810-koha-dev:~/koha/misc$ dpkg -l | grep MARC
ii  libidzebra-2.0-mod-grs-marc        2.0.34-1indexdata             record filter module for indexing MARC/ISO27
ii  libmarc-charset-perl               1.0-1                         convert MARC-8 encoded strings to UTF-8
ii  libmarc-crosswalk-dublincore-perl  0.02-1                        Convert data between MARC and Dublin Core
ii  libmarc-record-perl                2.0.0-1                       Perl extension for handling MARC fields
ii  libmarc-xml-perl                   0.88-1                        Work with MARC data encoded as XML

stan@stan-ubuntu-810-koha-dev:~/koha/misc$ dpkg -l | grep SAX
ii  librsvg2-2                         2.22.3-0ubuntu1               SAX-based renderer library for SVG files (ru
ii  libxml-sax-expat-perl              0.39-1                        Perl module for a SAX2 driver for Expat (XML
ii  libxml-sax-perl                    0.16+dfsg-3                   Perl module for using and building Perl SAX2


I was able to add "0324171897" from z39.50 @ library of congress just fine.

All tested w/ git head.



---- Additional Comments From cnighswonger@foundations.edu 2009-02-04 13:14:43 ----

This does not appear to be an issue with 3.00.01.005 on Ubuntu 8.10 w/Perl 5.10. Records import just fine from LOC and other sources.

cnighswonger@cnighswonger-laptop:~/koha.3.0.x$ dpkg -l | grep MARC
ii  libidzebra-2.0-mod-grs-marc                2.0.34-1indexdata                                    record filter module for indexing MARC/ISO27
ii  libmarc-charset-perl                       0.98-2                                               Bidirectional MARC-8 <-> Unicode converter m
ii  libmarc-crosswalk-dublincore-perl          0.02-1                                               Convert data between MARC and Dublin Core
ii  libmarc-record-perl                        2.0.0-2                                              Perl extension for handling MARC records
ii  libmarc-xml-perl                           0.88-1                                               Perl library to access MARC data encoded as 
cnighswonger@cnighswonger-laptop:~/koha.3.0.x$ dpkg -l | grep SAX
ii  librsvg2-2                                 2.22.3-0ubuntu1                                      SAX-based renderer library for SVG files (ru
ii  librsvg2-common                            2.22.3-0ubuntu1                                      SAX-based renderer library for SVG files (ex
ii  libxml-sax-expat-perl                      0.39-1                                               Perl module for a SAX2 driver for Expat (XML
ii  libxml-sax-perl                            0.16+dfsg-3                                          Perl module for using and building Perl SAX2




---- Additional Comments From rch@liblime.com 2009-02-04 13:40:25 ----


I don't see any evidence of a conflict here.
If there is no reproducible error, shall we close this bug?



---- Additional Comments From joe.atzberger@liblime.com 2009-02-04 13:54:58 ----

The bug is now any warning in the documentation that should be removed.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 00:49 UTC  ---

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

Unknown operating system Linux - Debian. Setting to default OS "All".
Actual time not defined. Setting to 0.0
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here: chris@bigballofwax.co.nz.
   Previous reporter was costas.magnuse@gmail.com.
CC member koha@brinkerhoff.org does not have an account here