IRC log for #koha, 2006-05-11

← Previous day | Today | Next day → | Search | Index

All times shown according to UTC.

Time Nick Message
14:48 kados for anyone who's interested in checking out the zebra stuff:
14:48 http://kohatest.liblime.com/cg[…]catalogue-home.pl
14:48 admin / changeme
22:13 disjuncture hello.. someone who can help me please?
22:16 ermm i having a problem on generating barcodes. im using koha 2.2.4 for windows
22:16 it says
22:17 Premature end of script headers: barcodesGenerator.pl
22:17 mason hi disjuncture
22:18 disjuncture hello mason
22:18 mason just looking for something...
22:18 disjuncture Premature end of script headers: barcodesGenerator.pl, referer: http://intranet:8080/cgi-bin/k[…]codes/barcodes.pl
22:19 Unable to open /tmp/380218-127.0.0.1-(From  to )-[10.5.2006]-[11:17:48].pdf for writing at C:/usr/site/lib/PDF/API2/PDF/File.pm line 420., referer: http://intranet:8080/cgi-bin/k[…]codes/barcodes.pl
22:19 i already created a tmp folder at c:\
22:19 but still it seems like it doesnt work..
22:20 mason hmm, that probably the wrong location for the tmp dir
22:20 lemme look...
22:23 i think it may be under the DocumentRoot dir in apache
22:23 which on my box is
22:24 DocumentRoot /usr/local/koha/intranet/htdocs
22:25 disjuncture still fails
22:26 mason the other thing is that ive heard chris mention that a recent version upgrade of pdf::api2 has broken the barcode-gen stuff
22:27 disjuncture this drives me nuts, i already consulted the koha windows mailing list..
22:27 i still have the 03.r77
22:27 mason but your problem seems to be a file perm. issue
22:27 disjuncture yeah.. kinda like that
22:28 but i am using windows
22:28 therefore file permission is not that pain
22:28 and i am logged in as admin
22:31 mason ah, try making a tmp dir under your cgi-bin dir too?
22:31 disjuncture yeah
22:33 whats the meaning of this: Premature end of script headers: barcodesGenerator.pl,
22:35 rach usually means that something is missing
22:36 I think
22:36 mason i think thats a html::template error, which means that the start of a html page was created , but the script failed before it was completed
22:37 hmm, my barcode-gen is busted too, but i HAVE upgraded my pdf::api2
22:38 Can't locate object method "barcode" via package "PDF::API2" at /usr/local/opus-dev/intranet/cgi-​bin/barcodes/barcodesGenerator.pl line 289.
22:38 [Wed May 10 15:33:54 2006] [error] [client 1.0.0.0.1] Premature end of script headers: /usr/local/opus-dev/intranet/cgi-​bin/barcodes/barcodesGenerator.pl
22:38 .
22:38 different problem :(
22:39 rach so when there is a premature end of script thingy, is there a more specific error log kept usually mason
22:40 unfortunatly qiqo, most of the developers are in france for the koha conference, so rather than having people available all the time because they are in different timezones, they are all in the same one, at it's about 3am, so they're asleep
22:40 or possibly at the pub I guess
22:40 mason not that i know of
22:41 qiqo ok :(
22:41 rach we get this a lot (prem end of script) so we must have info on it
22:41 mason its usually a result of a problem, not the cause tho
22:43 so its usually the lines before the 'Premature end of script headers' , thats the relevant lines
22:44 rach ok -
22:44 http://www.google.co.nz/search[…]ghts=&safe=images
22:45 ok so generally it's a template problem
22:46 and you're looking for asomething like this I think...
22:46 http://lists.katipo.co.nz/publ[…]/2004/007109.html
22:46 so that you can see what's missing
22:46 qiqo could it be an error because i have no printer installed? i just use a dummy printer since i dont know how to install my laser printer on koha
22:46 rach yes indeed
22:46 as it's barcode printing you're working with
22:47 it would  be expecting a printer
22:47 mason i think this is the problem
22:47 Unable to open /tmp/380218-127.0.0.1-(From to )-[10.5.2006]-[11:17:48].pdf for writing at C:/usr/site/lib/PDF/API2/PDF/File.pm line 420., referer: http://intranet:8080/cgi-bin/k[…]codes/barcodes.pl
22:47 qiqo ahh so how do i install a printer on koha? i mean this is windows, its not /dev/lp0
22:48 mason whew, i pass on that
22:49 theres probably a fudge to get unix printing on windows
22:50 qiqo so do you think that is the problem why i couldnt generate the barcodeS?
22:51 mason yes, its trying to write the tmp barcodes-pdf file to disk before httping to you, which it cant
22:51 qiqo i mean the printer stuff is the problem??
22:52 mason having no printing stuff setup in your koha shouldnt be a proble for barcodes as...
22:53 the barcode-gen stuff creates a pdf file, which it sends to your pdf viewer, (acrobat)
22:54 if acrobat/windows are set up with a printer, you will be fine for priniting
22:54 .
22:54 hope that makes sense
22:54 qiqo hmm so my problem is with the PDF creation stuff.. ohmigosh..
22:54 how can i resolve this..
22:57 ok ill try using perl 5.6.1 may that should do the fix.. i am currently using 5.8.0
22:58 mason no, send a mail to koha-win32 list, and ask about the correct location of the /tmp directory for windows
22:58 thats the current problem,
22:58 qiqo ok..
23:01 mason qiqo: in "./barcodesGenerator.pl" line 258
23:01                        # Set the temp directory for pdf?s files
23:01            if ( !defined( $ENV{'TEMP'} ) ) {
23:01                $ENV{'TEMP'} = '/tmp/';
23:01 try changing $ENV{'TEMP'} = '/tmp/'; to
23:02 $ENV{'TEMP'} = 'c:\tmp';    ???
23:02 qiqo ok iltry
23:03 enkk.. still no luck
23:05 mason .
23:07 try putting a warn statement after line 259, to print out the dir to the error log
23:07 if ( !defined( $ENV{'TEMP'} ) ) {
23:07                $ENV{'TEMP'} = '/tmp/';
23:07            }
23:07            warn "temp dir=$ENV{'TEMP'}";
23:07 .
23:07 qiqo 259 ok
23:08 mason in my log i get
23:08 temp dir=/tmp/ at /usr/local/koha/intranet/cgi-bi​n/barcodes/barcodesGenerator.pl line 260.
23:10 and in my /tmp dir, ive got a bunch those barcode pdf's
23:10 .
23:11 ls /tmp/*.pdf
23:11 180821-203.97.165.38-(From  to )-[17.3.2006]-[11:32:41].pdf
23:11 249204-58.28.132.25-(From  to )-[10.5.2006]-[16:4:52].pdf
23:11 qiqo ok please wait ill chek it out
23:12 mason ok, im off for a bit, hope that helps,
23:12 pop it in your email to the koha-win32 list
23:13 qiqo aright than you very much
23:14 mason no problem :)
03:16 qiqo mason still there? anybody awake?
04:08 russ thd did that work?
08:03 kados http://library.neu.edu.tr/cgi-[…]koha/opac-main.pl
10:42 slef http://mjr.towers.org.uk/blog/2006/koha#con2k6

← Previous day | Today | Next day → | Search | Index

koha1