Topic: print documents empty.pdf
if you try to print some documents (like customer statement) the file is .pdf -> as in empty.pdf
so in pdf_report.inc change $fname to
$fname = $dir.'/'.uniqid('').'.pdf';
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Report Bugs here → print documents empty.pdf
if you try to print some documents (like customer statement) the file is .pdf -> as in empty.pdf
so in pdf_report.inc change $fname to
$fname = $dir.'/'.uniqid('').'.pdf';
I cannot reproduce this error. The function uniqid() is not strong enough for the purpose. However it is up to you.
I have asked Janusz to look at it.
/Joe
This works properly for me too. random_id function used here makes 3 different approaches to generate random filename, the last being Mersenne Twister generator, which does not rely on any special php extension, so should work in all php versions. Also, uniquid() is not random, so this change would open additional vulnerability in FA, making temporary copy of pdf documents easy to find.
If you will find source of this problem, please report it again, we will try to fix it.
Janusz
Sorry guys, I think this might be my doing because of some changes I made in pdf_report.inc
FrontAccounting forum → Report Bugs here → print documents empty.pdf
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.