Strange media dependent "Unable to stream PDF: headers already sent"

287 views
Skip to first unread message

Xthefrog

unread,
Jun 10, 2012, 5:20:25 PM6/10/12
to dompdf
Hi

I've read through some forums about this error message, and have done
all the pre-checks of whitespace and closing "?>" and all is fine. I
am running 0.60 beta 3 and have implemented the DOMPDF into an offline
application which I am running on a portable Apache webserver.

Now the strange thing is, when I place all the code in the htdocs
directory and copy this server onto a USB stick, the PDF generates as
expected (ie., click on "GENERATE PDF" and a SAVE dialog appears).

However, when I then burn this onto a CD or DVD, when I click on
"GENERATE PDF" it returns the warning:

"WARNING: file_put_contents(E:/htdocs/lib/fonts/log.html)
[function:file-put-contents]: failed to open stream. Permission denied
in E:\htdocs\include\dompdf.cls.php on line 864
Unable to sream pdf: headers already sent

Can anyone please help?

Thanks

BrianS

unread,
Jun 10, 2012, 9:27:57 PM6/10/12
to dom...@googlegroups.com
dompdf requires read/write access to some directories ... take a look at the directories specified by the following configuration constant: DOMPDF_FONT_DIR, DOMPDF_FONT_CACHE, and DOMPDF_TEMP_DIR. This particular message, though, related to the log file specified by DOMPDF_LOG_OUTPUT_FILE.
Reply all
Reply to author
Forward
0 new messages