Bug 2249 - Error in barcodesGenerator.pl
Summary: Error in barcodesGenerator.pl
Status: CLOSED REMIND
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: rel_2_2
Hardware: PC All
: P3 major
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 09:24 UTC by Ata ur Rehman
Modified: 2014-12-07 20:02 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


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:48:30 UTC


---- Reported by ata.rehman@gmail.com 2008-06-16 21:24:45 ----

When I try to print barcodes using http://intranet/cgi-bin/koha/barcodes/barcodesGenerator.pl script i got the Internal Server Error with the following entry in error log of apache:
[Tue Jun 17 10:18:19 2008] [error] [client 127.0.0.1] Premature end of script headers: barcodesGenerator.pl, referer: http://intranet/cgi-bin/koha/barcodes/barcodes.pl
[Tue Jun 17 10:18:19 2008] [error] [client 127.0.0.1] Unable to open /tmp/45288-127.0.0.1-(From 1 to 15)-[17.6.2008]-[10:18:19].pdf for writing at C:/usr/site/lib/PDF/API2/Basic/PDF/File.pm line 511., referer: http://intranet/cgi-bin/koha/barcodes/barcodes.pl

I am using the following versions:

OS: Windows XP
Apache 2.2.8
mysql-4.0.18
ActivePerl-5.8.0.802-MSWin32-x86
Koha 2.2.8

Ata ur Rehman
LISolutions (http://www.lisolutions.org/)



---- Additional Comments From henridamien@koha-fr.org 2008-06-17 00:18:31 ----

At first glance, the user of your Koha installation donot have rights on your tmp directory. (seems to be a Windows install also.)
Maybe try to add a tmp dir in C:\

Or what can add problems is the name of the file which contains special chars such as () and []



---- Additional Comments From ata.rehman@gmail.com 2008-06-17 00:22:58 ----

Sir I am the admin of this machine, having all rights.  Also tmp directory is available and writable.  I dont know about the special characters.  Can you tell me where to change this file name?


(In reply to comment #1)

> At first glance, the user of your Koha installation donot have rights on your
> tmp directory. (seems to be a Windows install also.)
> Maybe try to add a tmp dir in C:\
> 
> Or what can add problems is the name of the file which contains special chars
> such as () and []
> 





---- Additional Comments From ata.rehman@gmail.com 2008-06-17 21:33:30 ----

I changed the file name at lime 133 of barcodesGenerator.pl as:
	my $tmpFileName = $random.'-'.$ip.'-(From '.$from.' to '.$to.')-['.$day.'.'.$month.'.'.$year.']-['.$hour.':'.$min.':'.$sec.'].pdf';

to:
	my $tmpFileName = test.pdf;

Now the error has been changed as:

[Wed Jun 18 10:21:15 2008] [error] [client 127.0.0.1] Premature end of script headers: barcodesGenerator.pl, referer: http://intranet/cgi-bin/koha/barcodes/barcodes.pl
[Wed Jun 18 10:21:15 2008] [error] [client 127.0.0.1] Can't locate object method "barcode" via package "PDF::API2" at C:/usr/koha228/intranet/cgi-bin/koha/barcodes/barcodesGenerator.pl line 237., referer: http://intranet/cgi-bin/koha/barcodes/barcodes.pl

I looked into PDF/API2.pm, and could not find any method name "barcode"

Any help or idea?

(In reply to comment #1)
> At first glance, the user of your Koha installation donot have rights on your
> tmp directory. (seems to be a Windows install also.)
> Maybe try to add a tmp dir in C:\
> 
> Or what can add problems is the name of the file which contains special chars
> such as () and []
> 





---- Additional Comments From nengard@gmail.com 2009-12-23 17:59:04 ----

This bug hasn't been touched in nearly a year, please revisit and test and close if appropriate.



---- Additional Comments From ata.rehman@gmail.com 2009-12-23 19:51:23 ----

(In reply to comment #4)
> This bug hasn't been touched in nearly a year, please revisit and test and
> close if appropriate.
> 

Thanks Nicole.  But I've shifted from Windows to Linux and don't know the status of Koha on Windows... It is not possible for me to test it again.  If someone using Windows version of Koha can tell us about the status of this bug...

What do you suggest about closure of this bug?



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

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

Unknown operating system Windows 2000. Setting to default OS "All".
Actual time not defined. Setting to 0.0