Barcode generation errors
Hi all, When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this: [Mon Apr 21 13:52:58 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] BEGIN failed--compilation aborted at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:44 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/printerConfig.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:44 2008] [error] [client 192.168.34.202] BEGIN failed--compilation aborted at /usr/local/koha/intranet/cgi-bin/barcodes/printerConfig.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:06:44 2008] [error] [client 192.168.34.202] Premature end of script headers: printerConfig.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:10:50 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:10:50 2008] [error] [client 192.168.34.202] BEGIN failed--compilation aborted at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl [Mon Apr 21 14:10:50 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl Any help would be appreciate,. Tom Green
On Mon, Apr 21, 2008 at 2:13 PM, Thomas Green <thomas.green@jstor.org> wrote:
When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this:
What version of Koha are you using? Regards, Chris -- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org
On Mon, Apr 21, 2008 at 2:13 PM, Thomas Green <thomas.green@jstor.org> wrote:
Hi all,
When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this:
[Mon Apr 21 13:52:58 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
[Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
It looks like you're missing PDF::API2
From a command line try 'cpan install PDF::API2'
Regards, Chris -- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org
I am running koha 2.2.9. I have installed that module(PDF::API2) but no dice. --Tom -----Original Message----- From: Chris Nighswonger [mailto:cnighswonger@foundations.edu] Sent: Monday, April 21, 2008 2:22 PM To: Thomas Green Cc: koha listgroup Subject: Re: [Koha] Barcode generation errors On Mon, Apr 21, 2008 at 2:13 PM, Thomas Green <thomas.green@jstor.org> wrote:
Hi all,
When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this:
[Mon Apr 21 13:52:58 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
[Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
It looks like you're missing PDF::API2
From a command line try 'cpan install PDF::API2'
Regards, Chris -- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org
On Mon, Apr 21, 2008 at 2:29 PM, Thomas Green <thomas.green@jstor.org> wrote:
I am running koha 2.2.9. I have installed that module(PDF::API2) but no dice.
Although I have done extensive work on the label printing code in Koha 3, I am completely unfamiliar with that code in 2.2.x. Perhaps someone who has been into it could respond. Regards, Chris -- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org
Perhaps you installed it as a user, and not using sudo/root. If you did use sudo, then find where that Utils.pm file ended up, and compare that to the @INC dirs in the error message. --Joe Atzberger On Mon, Apr 21, 2008 at 2:29 PM, Thomas Green <thomas.green@jstor.org> wrote:
I am running koha 2.2.9. I have installed that module(PDF::API2) but no dice.
--Tom
-----Original Message----- From: Chris Nighswonger [mailto:cnighswonger@foundations.edu] Sent: Monday, April 21, 2008 2:22 PM To: Thomas Green Cc: koha listgroup Subject: Re: [Koha] Barcode generation errors
On Mon, Apr 21, 2008 at 2:13 PM, Thomas Green <thomas.green@jstor.org> wrote:
Hi all,
When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this:
[Mon Apr 21 13:52:58 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
[Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
It looks like you're missing PDF::API2
From a command line try 'cpan install PDF::API2'
Regards, Chris
-- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org <http://lists.katipo.co.nz/mailman/listinfo/koha>
Hey Joe, I did in fact install this module as root. Here are the contents of @INC: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl And here is the location of the module /root/.cpan/build/PDF-API2-0.69/blib/lib/PDF/API2/Basic/PDF/Utils.pm /root/.cpan/build/PDF-API2-0.69/blib/lib/PDF/API2/Basic/TTF/Utils.pm /root/.cpan/build/PDF-API2-0.69/lib/PDF/API2/Basic/PDF/Utils.pm /root/.cpan/build/PDF-API2-0.69/lib/PDF/API2/Basic/TTF/Utils.pm /home/jstor-prod/Desktop/koha-3.00.00-beta2/C4/Utils.pm /usr/local/share/perl/5.8.8/PDF/API2/Basic/PDF/Utils.pm /usr/local/share/perl/5.8.8/PDF/API2/Basic/TTF/Utils.pm /usr/share/perl/5.8.8/ExtUtils/Constant/Utils.pm /usr/share/perl5/Debian/DocBase/Utils.pm Do I need to change anything and if so, what? Thanks, Tom ________________________________ From: Joe Atzberger [mailto:ohiocore@gmail.com] Sent: Monday, April 21, 2008 4:09 PM To: Thomas Green Cc: koha listgroup Subject: Re: [Koha] Barcode generation errors Perhaps you installed it as a user, and not using sudo/root. If you did use sudo, then find where that Utils.pm file ended up, and compare that to the @INC dirs in the error message. --Joe Atzberger On Mon, Apr 21, 2008 at 2:29 PM, Thomas Green <thomas.green@jstor.org> wrote: I am running koha 2.2.9. I have installed that module(PDF::API2) but no dice. --Tom -----Original Message----- From: Chris Nighswonger [mailto:cnighswonger@foundations.edu] Sent: Monday, April 21, 2008 2:22 PM To: Thomas Green Cc: koha listgroup Subject: Re: [Koha] Barcode generation errors On Mon, Apr 21, 2008 at 2:13 PM, Thomas Green <thomas.green@jstor.org> wrote:
Hi all,
When trying to print barcodes or accessing printer config, I get an "Internal Server Error". My log files look like this:
[Mon Apr 21 13:52:58 2008] [error] [client 192.168.34.202] Premature end of script headers: barcodesGenerator.pl, referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
[Mon Apr 21 14:06:29 2008] [error] [client 192.168.34.202] Can't locate PDF/API2/PDF/Utils.pm in @INC (@INC contains: /usr/local/koha/intranet/modules /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/koha/intranet/cgi-bin/barcodes/barcodesGenerator.pl line 33., referer: http://192.168.34.34:8080/cgi-bin/koha/barcodes/barcodes.pl
It looks like you're missing PDF::API2
From a command line try 'cpan install PDF::API2'
Regards, Chris -- Chris Nighswonger Faculty Member Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org <http://lists.katipo.co.nz/mailman/listinfo/koha>
On Tue, Apr 22, 2008 at 4:18 PM, Thomas Green <thomas.green@jstor.org> wrote:
Here are the contents of @INC:
/etc/perl /usr/local/lib/perl/5.8.8 */usr/local/share/perl/5.8.8 * /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl
And here is the location of the module
*/usr/local/share/perl/5.8.8**/*PDF/API2/Basic/PDF/Utils.pm* *
So your @INC is ok. The problem is that Koha is looking for PDF/API2/PDF/Utils.pm not PDF/API2/*Basic*/PDF/Utils.pm. I do not know whether this represents a substantive difference in versions, or just a new convention for the module. You could look for usage statements to the former and try replacing them with calls to the latter. Or you could try upgrading to a newer version of Koha where barcodes have already been reworked (and still are). --Joe Atzberger
"Joe Atzberger" <ohiocore@gmail.com> wrote:
So your @INC is ok. The problem is that Koha is looking for PDF/API2/PDF/Utils.pm not PDF/API2/*Basic*/PDF/Utils.pm. I do not know whether this represents a substantive difference in versions [...]
http://serene.ttllp.co.uk/~mjr/barcodefix.patch but I think there might be a later version - search list archives. Anyone willing to support a 2.2.10 release? I don't even remember which version control is authoritative for rel_2_2 any more, sorry. Regards, -- MJ Ray (slef) Webmaster for hire, statistician and online shop builder for a small worker cooperative http://www.ttllp.co.uk/ http://mjr.towers.org.uk/ (Notice http://mjr.towers.org.uk/email.html) tel:+44-844-4437-237
I am confused, is 2.2.9 the most recent stable release (that is the version I am using)? In other words, I am not able to upgrade to a more recent release unless you are suggesting that I upgrade to the beta version. I can try changing the references to the module, but I do not know all the Perl programs in which they occur. Thanks. Tom ________________________________ From: Joe Atzberger [mailto:ohiocore@gmail.com] Sent: Tuesday, April 22, 2008 5:07 PM To: Thomas Green Cc: koha listgroup Subject: Re: [Koha] Barcode generation errors On Tue, Apr 22, 2008 at 4:18 PM, Thomas Green <thomas.green@jstor.org> wrote: Here are the contents of @INC: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl And here is the location of the module /usr/local/share/perl/5.8.8/PDF/API2/Basic/PDF/Utils.pm So your @INC is ok. The problem is that Koha is looking for PDF/API2/PDF/Utils.pm not PDF/API2/Basic/PDF/Utils.pm. I do not know whether this represents a substantive difference in versions, or just a new convention for the module. You could look for usage statements to the former and try replacing them with calls to the latter. Or you could try upgrading to a newer version of Koha where barcodes have already been reworked (and still are). --Joe Atzberger
participants (4)
-
Chris Nighswonger -
Joe Atzberger -
MJ Ray -
Thomas Green