Hi,
I made a fresh installation (V15.0) on Azure (linux webapp), everything during installation is ok - no errors
Fine, then I insert some data and afterwards I wanted to view a generated PDF.
But I got only a blank page back… (preview and download)
The generated PDF is ok (I downloaded it (outside of dolibarr) and viewed it locally).
The dolibarr.log shows no errors.
Is this a misconfiguration or how can I narrow down / fix the error?
Any tip are welcome…
Thanks, Bernd
Hi,
maybe another user has the same problem therefore i wrote the solution down here.
After inserting “MAIN_FORCE_READFILE_WITH_FREAD 1” as global- conf the error is gone and the PDF is showing.
Without this setting “readfile()” is used in ~/core/lib/functions.lib.php “function readfileLowMemory”
otherwise fopen is used.
Maybe I missed some configuration on server-side (azure)…
For the PHP-experts: Is there any performance disadvantage between readfile() vs fopen() in dolibarr?