Has anyone found a solution to this problem? I am receiving the same Premature end of script error for addbiblio.pl. I am able to run the script after adding the perl5lib variable to bash. Does anyone know if this a Koha or Apache config error? Thanks. Hennie Rautenbach wrote:
Hennie Rautenbach wrote:
MJ Ray wrote:
Hennie Rautenbach <hennie@sabinet.co.za> wrote: [...]
trying to add a "biblio" manually. We are prompted to save the "addbiblio.pl" file. I see this has happened to other users before (google search), but I am unable to find a reference to a fix for it.
This has happened because the script has crashed without producing any output, so apache has guessed (incorrectly) what headers to send and your browser interpreted it as a file download.
To stop it, fix the crash. To fix the crash, find out the error. To find out the error, look in koha-error_log for the time of the crash. (To find koha-error_log, see the ErrorLog line in koha-httpd.conf)
Hope that helps,
I am unable to determine what this error is (or what is causing the error):
We have imported a record (Title: The Kitchen God's Wife) from Worldcat using a Z39.50 search. When using the "Add Biblio" feature the browser crashes with the resultant error in the Apache Error Log:
[Tue Oct 09 10:37:20 2007] [error] [client 192.96.193.28] Q2 : select distinct m1.bibid from biblio,biblioitems,marc_biblio,marc_word as m1,marc_word as m2,marc_word as m3,marc_word as m4,marc_word as m5,marc_word as m6,marc_word as m7,marc_subfield_table as m8 where biblio.biblionumber=marc_biblio.biblionumber and biblio.biblionumber=biblioitems.biblionumber and m1.bibid=marc_biblio.bibid and (m1.bibid=m2.bibid and m1.bibid=m3.bibid and m1.bibid=m4.bibid and m1.bibid=m5.bibid and m1.bibid=m6.bibid and m1.bibid=m7.bibid and m1.bibid=m8.bibid) and ((m1.word like 'kitchen' and m1.tagsubfield in ('245a'))and (m2.word like 'god' and m2.tagsubfield in('245a'))and (m3.word like 'wife' and m3.tagsubfield in('245a'))and (m4.word like 'Tan' and m4.tagsubfield in('245b'))and (m5.word like 'Amy' and m5.tagsubfield in('245b'))and (m6.word like '24' and m6.tagsubfield in('100a'))and (m7.word like 'cm' and m7.tagsubfield in('100a'))and (m8.subfieldvalue = 'Putnam,' and concat(m8.tag,m8.subfieldcode) in ('300c'))) order by biblio.title ASC term is The kitchen god s wife Tan Amy 24 cm Putnam, at /data/koha/intranet/modules/C4/SearchMarc.pm line 274., referer: http://ns2.sabinet.co.za:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?breedin...
[Tue Oct 09 10:37:20 2007] [error] [client 192.96.193.28] Arguments must be MARC::Field object at /data/koha/intranet/modules/C4/Biblio.pm line 1440, referer: http://ns2.sabinet.co.za:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?breedin...
[Tue Oct 09 10:37:20 2007] [error] [client 192.96.193.28] Premature end of script headers: addbiblio.pl, referer: http://ns2.sabinet.co.za:8080/cgi-bin/koha/acqui.simple/addbiblio.pl?breedin...
Can anyone shed more light on this for me ?
I should perhaps add that I have added the PERL5LIB variable to the .bashrc of both root and the user running apache2. I can run addbiblio.pl from the Linux shell without errors.
_______________________________________________ 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/Problems-adding-a-biblio...-tp12608379p15658418.html Sent from the Koha - Discuss mailing list archive at Nabble.com.