Hi there, We have installed the latest release of Koha on a Linux server: Operating System: Ubuntu 7.04 All worked well until a week ago when we started getting an error when 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. See screenshot at http://overland.co.za/upload/share/error.jpg I have verified that cgid.load is present in "mods-enabled". The only thing that changed on the server since this feature became broke is an installation of Wordpress Blog. Not sure how this may have impacted on Koha ? Any assistance to get this problem resolved will be greatly appreciated. Kind regards Hennie Rautenbach
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, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Experienced webmaster-developers for hire http://www.ttllp.co.uk/ Also: statistician, sysadmin, online shop builder, workers co-op. Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
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)
Thanks. Appears the bibliographic we tried to add is broken or not in MARC format. I appreciate the assistance, Regards, Hennie
Hennie Rautenbach a écrit :
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)
Thanks.
Appears the bibliographic we tried to add is broken or not in MARC format.
I appreciate the assistance,
Regards,
It could be that your framework is not valid (check it in parameters module....) Or the data you send is not clean. Hopes that helps. -- Henri-Damien LAURENT
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 ?
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.
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.
dannytan1126 <dtan@schools.nyc.gov> wrote:
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?
Do you have similar lines in your koha-error_log? If so, it's probably not any config error, but a subtle bug in Koha that is being triggered by the Z39.50 server and then is handled badly by Koha, Apache and the browser. There is an improvement in 3.0 (search the archives for CGI::Carp - sorry I've not more time just now) which might be addable to 2.2. If there's no similar lines in your koha-error_log, it might be a configuration error. Hope that helps, -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
Hi there,
We have installed the latest release of Koha on a Linux server: Operating System: Ubuntu 7.04
All worked well until a week ago when we started getting an error when 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.
See screenshot at http://overland.co.za/upload/share/error.jpg
I have verified that cgid.load is present in "mods-enabled". The only thing that changed on the server since this feature became broke is an installation of Wordpress Blog. Not sure how this may have impacted on Koha ?
Any assistance to get this problem resolved will be greatly appreciated.
Kind regards
Hennie Rautenbach Hi
Hennie Rautenbach a écrit : those screens are presented in apache2.2 when an error occurs in a cgi perl script. was this the first time you added a biblio ? If not, can you reproduce the misbehaviour and send apache or koha error logs ? This would help better than screenshot. Thanks. -- Henri-Damien LAURENT
participants (4)
-
dannytan1126 -
Hennie Rautenbach -
Henri-Damien LAURENT -
MJ Ray