Re: use CGI::Carp to catch all perl errors [was: koha on debian etch 4.0]
Hello
I have the same error. Here's the contents of Biblio.pm around 1440.
Just for my info: In MARC links - System Prefs / Links Koha - MARC DB.
What is the default 'tag', 'subfield' and 'lib' of 'biblionumber' and 'biblioitemnumber' in "biblio" and "biblioitems"? My MARC check returns no errors.
I don't think there is a problem.
--> 1395 "select tagfield,tagsubfield from marc_subfield_structure where kohafield=?" 1396 ); 1397 $sth->execute("biblio.biblionumber"); 1398 ( my $tagfield1, my $tagsubfield1 ) = $sth->fetchrow; 1399 $sth->execute("biblioitems.biblioitemnumber"); 1400 ( my $tagfield2, my $tagsubfield2 ) = $sth->fetchrow; 1401 my $newfield; 1402 # biblionumber & biblioitemnumber are in different fields 1403 if ( $tagfield1 != $tagfield2 ) { 1404 # deal with biblionumber 1405 if ($tagfield1<10) { 1406 $newfield = MARC::Field->new( 1407 $tagfield1, $oldbibnum, 1408 ); 1409 } else { 1410 $newfield = MARC::Field->new( 1411 $tagfield1, '', '', "$tagsubfield1" => $oldbibnum, 1412 ); 1413 } <--
Here it is:
Arguments must be MARC::Field object at /usr/local/koha/intranet/modules/C4/Biblio.pm line 1440
Sorry. I'm no perl-professional at all. I just managed to have koha running on sarge and wanted to have it on an updated etch. But I'm stuck and it seems that nobody is able to tell something about this ... Today I removed most of the perl-packages did a rm /usr/local/share/perl -r and started the install-process of koha all over again (following the guidelines for sarge). -> same result. I confess that I'm lost. Beda
Dear Beda, i just stumbled upon your problem searching for a solution for my problem: i can't add any biblio at all, since all submissions end up in a APACHE "Error message: Premature end of script headers: addbiblio.pl", with the following details found in APACHE-log: Q2 : select distinct m1.bibid from biblio,biblioitems,marc_biblio,marc_word as m1,marc_word as m2 where biblio.biblionumber=marc_biblio.biblionumber and biblio.biblionumber=biblioitems.biblionumber and m1.bibid=marc_biblio.bibid and (m1.bibid=m2.bibid) and ((m1.word like 'title' and m1.tagsubfield in ('245a')) and (m2.word like 'test' and m2.tagsubfield in('245a'))) order by biblio.title ASC term is title test 2 at /usr/local/koha/intranet/modules/C4/SearchMarc.pm line 274. Arguments must be MARC::Field object at /usr/local/koha/intranet/modules/C4/Biblio.pm line 1440 (please see my bugzilla bugrequest 1595 for additional details). ... which is obviously a very related problem? Since i'm all new to the librarian's field of handling MARC-records i still have the suspicion to simply enter information against the odds? I started by filling a form for adding a new biblio (simple) into a Koha-installation, which is configured right out of the box (painstakingly following all guidance which can be found on the net). I ended up failing to get the MARC-Field 040 updated, since the mandatory-checker refused to recognize i already entered a value. As a workaround i decided to simple deactivate the "mandatory"-flag in MARC-Field 040 to pass that problem by, filled all other mandatory forms, but still get the aforementioned error. If you are still tackling this problem (which i hope), any hint would very much be appreciated, since for me this problem will definitely stop the entire project, which really would be a pity. In hope Hilmar Beda Szukics-2 wrote:
Hello
I have the same error. Here's the contents of Biblio.pm around 1440.
Just for my info: In MARC links - System Prefs / Links Koha - MARC DB.
What is the default 'tag', 'subfield' and 'lib' of 'biblionumber' and 'biblioitemnumber' in "biblio" and "biblioitems"? My MARC check returns no errors.
I don't think there is a problem.
--> 1395 "select tagfield,tagsubfield from marc_subfield_structure where kohafield=?" 1396 ); 1397 $sth->execute("biblio.biblionumber"); 1398 ( my $tagfield1, my $tagsubfield1 ) = $sth->fetchrow; 1399 $sth->execute("biblioitems.biblioitemnumber"); 1400 ( my $tagfield2, my $tagsubfield2 ) = $sth->fetchrow; 1401 my $newfield; 1402 # biblionumber & biblioitemnumber are in different fields 1403 if ( $tagfield1 != $tagfield2 ) { 1404 # deal with biblionumber 1405 if ($tagfield1<10) { 1406 $newfield = MARC::Field->new( 1407 $tagfield1, $oldbibnum, 1408 ); 1409 } else { 1410 $newfield = MARC::Field->new( 1411 $tagfield1, '', '', "$tagsubfield1" => $oldbibnum, 1412 ); 1413 } <--
Here it is:
Arguments must be MARC::Field object at /usr/local/koha/intranet/modules/C4/Biblio.pm line 1440
Sorry. I'm no perl-professional at all. I just managed to have koha running on sarge and wanted to have it on an updated etch. But I'm stuck and it seems that nobody is able to tell something about this ...
Today I removed most of the perl-packages did a rm /usr/local/share/perl -r and started the install-process of koha all over again (following the guidelines for sarge). -> same result. I confess that I'm lost.
Beda
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://www.nabble.com/koha-on-debian-etch-4.0-tf4446016.html#a13818862 Sent from the Koha - Discuss mailing list archive at Nabble.com.
hf a écrit :
Dear Beda, i just stumbled upon your problem searching for a solution for my problem: i can't add any biblio at all, since all submissions end up in a APACHE "Error message: Premature end of script headers: addbiblio.pl", with the following details found in APACHE-log:
Q2 : select distinct m1.bibid from biblio,biblioitems,marc_biblio,marc_word as m1,marc_word as m2 where biblio.biblionumber=marc_biblio.biblionumber and biblio.biblionumber=biblioitems.biblionumber and m1.bibid=marc_biblio.bibid and (m1.bibid=m2.bibid) and ((m1.word like 'title' and m1.tagsubfield in ('245a')) and (m2.word like 'test' and m2.tagsubfield in('245a'))) order by biblio.title ASC term is title test 2 at /usr/local/koha/intranet/modules/C4/SearchMarc.pm line 274. Arguments must be MARC::Field object at /usr/local/koha/intranet/modules/C4/Biblio.pm line 1440
(please see my bugzilla bugrequest 1595 for additional details).
... which is obviously a very related problem?
Since i'm all new to the librarian's field of handling MARC-records i still have the suspicion to simply enter information against the odds? I started by filling a form for adding a new biblio (simple) into a Koha-installation, which is configured right out of the box (painstakingly following all guidance which can be found on the net). I ended up failing to get the MARC-Field 040 updated, since the mandatory-checker refused to recognize i already entered a value. As a workaround i decided to simple deactivate the "mandatory"-flag in MARC-Field 040 to pass that problem by, filled all other mandatory forms, but still get the aforementioned error.
If you are still tackling this problem (which i hope), any hint would very much be appreciated, since for me this problem will definitely stop the entire project, which really would be a pity. In hope
Hilmar
Hi, at first glance, it seems it is a problem related to mysql and Koha. Koha 2.2.9 should be able to tackle with mysql5 but previous versions cannot. And this query you show up cannot be processed by mysql5. So if you have mysql5 and you want to install Koha, consider upgrading to the latest 2_2 version. -- Henri-Damien LAURENT
participants (3)
-
Beda Szukics -
Henri-Damien LAURENT -
hf