Subject: | Empty QR code |
Hello,
I've issue with creating QR codes from my web cgi script (perl v5.8.8, apache 2.2.22).
After some amount of time QR code is always empty.
Example of code i'm using:
my $bar = GD::Barcode::QRcode->new('http://'.$domain, { Ecc => 'L', Version => 4, Size => 3
});
my $code = $bar->plot;
After some digging in GD/Barcode/QRcode.pm i found that smth wrong with path:
my $sRec = do ('GD/Barcode/QRcode/qrv'.sprintf('%02d', $oSelf->{Version}) . $oSelf->{Ecc} .
'.dat');
I change it to:
my $sRec = do (File::Basename::dirname(__FILE__).'/QRcode/qrv'.sprintf('%02d', $oSelf->
{Version}) . $oSelf->{Ecc} . '.dat');
All seems to be fine now. Probably it has to do smth with apache settings (firstly works, then
stops - can't explain that).
----
Best regards,
Michael.