Premature end of script headers: /var/chroot/home/content/j/u/s/
justinb/html/dbe/print.php
Mind you it works fine on 5.2.8. I hope there is a viable solution,
I'm using the latest development version from SVN, downloaded just a
couple days ago.
Thanks for responding!
> --
> You received this message because you are subscribed to the Google
> Groups "dompdf" group.
> To post to this group, send email to dom...@googlegroups.com.
> To unsubscribe from this group, send email to dompdf+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/dompdf?hl=en
> .
>
Justin Beeler
justin...@gmail.com
On Jul 7, 2010, at 11:42 AM, BrianS wrote:
ini_set('error_log', dirname(__FILE__).'error.log');
ini_set('log_errors', 'on');
ini_set('display_errors', 'on');
... in my script but there is no error log being created anywhere on
the server. It does on my localhost, but there is no problem on my
localhost so that doesn't help.
No, GoDaddy doesn't use cPanel, they have their own thing going on.
The tech support guy says that since I'm on shared hosting I don't
have control over what version of php I'm running (except if I wanted
to revert to php4).
I'm having the same issue described in this thread:
http://code.google.com/p/dompdf/issues/detail?id=10&q=internal%20server%20error
Though, some of these people are having a separate issue, but I
believe there are a few people in there getting the same problem and
they said they're running 5.2.8 and upgrading to 5.2.9 fixed it. I
don't know if there is any helping me, I may have to find an
alternative. I just hate to re-write everything for another library
(which I've had more trouble out of than this one), but the support
for this one is great because you guys actually respond to issues.
Hope there is something that can be done...
Basically, what I'm doing is appending content to a variable called
$html. Most of my script is basically putting html markup into that
variable, then I would do this:
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("DBE_Application-$app_id.pdf");
And on 5.2.5 (on localhost) it works fine, a save dialog is opened and
the pdf file is generated as expected.
If I run the same script on server running 5.2.8, I get the error. If
I comment out the following code:
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("DBE_Application-$app_id.pdf");
and echo $html, I get all of the markup displayed on the page
properly. No error is encountered. So I know that the error is
happening when I call these functions on the $dompdf object.
I also ran a test where I commented out around one third of the
contents of $html and it worked fine. So it must be an issue of there
being too much content?
I'm using:
ini_set('memory_limit', '128M');
Is 128M really not enough or is it something else going on?
I am more or less having the same problem (FreeBSD 6.2 release p3, PHP version 5.2.8). It happens when rendering bigger pieces of HTML code (about 20kb and up). DOMPDF does its work on smaller HTML files, but when the HTML code that needs parsing gets too big, it throws a 500 Internal Server Error. It seems to have happened after a PHP server update (DOMPDF didn't seem to have this problem on PHP version 5.2.6). I've maximized the memory_limit and execution_time settings and they didn't solve the problem. Any thoughts?
> --
> You received this message because you are subscribed to the Google
> Groups "dompdf" group.
> To post to this group, send email to dom...@googlegroups.com.
> To unsubscribe from this group, send email to dompdf+un...@googlegroups.com
> .