Skip to content

Empty PDF Files and PHP Errors #24

Closed
deejross opened this Issue May 11, 2012 · 1 comment

2 participants

@deejross

I just installed the newest version of dw2pdf and it returns a PDF file with a size of 0 bytes. Checking the logs, I got this message:

2012/05/11 18:50:20 [error] 28102#0: *346 FastCGI sent in stderr: "PHP Warning: rand() expects exactly 2 parameters, 1 given in /var/www/lib/plugins/dw2pdf/DokuPDF.class.php on line 11
PHP Warning: opendir(/var/www/data/tmp/dwpdf): failed to open dir: No such file or directory in /var/www/lib/plugins/dw2pdf/mpdf/mpdf.php on line 7132" while reading response header from upstream, client: 192.168.1.200, server: wiki.[removed].com, request: "GET /start?do=export_pdf HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "wiki.[removed].com", referrer: "https://wiki.[removed].com/doku.php"

@deejross

That fixed the random errors, but I'm still getting this error:

2012/05/14 17:48:01 [error] 28366#0: *597 FastCGI sent in stderr: "PHP Warning: opendir(/var/www/data/tmp/dwpdf/551): failed to open dir: No such file or directory in /var/www/lib/plugins/dw2pdf/mpdf/mpdf.php on line 7132" while reading response header from upstream, client: 192.168.1.200, server: wiki.[removed].com, request: "GET /wiki:syntax?do=export_pdf HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "wiki.[removed].com", referrer: "https://wiki.[removed].com/doku.php?id=wiki:syntax"

I tried manually creating the /var/www/data/tmp/dwpdf directory and setting the proper permissions, but I still get the same error.

@samwilson samwilson pushed a commit to samwilson/dokuwiki-plugin-dw2pdf that referenced this issue Jan 22, 2013
@splitbrain Create and remove temp dir. fixes #24, maybe #25 1c9fae9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.