vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

DOMPDF (in CiviCRM) Eating up CPU #277

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On a Drupal 6 site that was just upgraded to CiviCRM 3.4, when someone 
registers for an event, the process eventually dies on a 500 error. We 
investigated it, and identified that the problematic module is dompdf. It 
appears to hang without being able to complete successfully. CiviCRM uses 
dompdf 0.5.1.htischer.20090507 to create and attached PDF receipts for event 
participants.

There is an xdebug.txt file here 
http://civihosting.com/sites/default/files/xdebug.txt.zip if anyone wants to 
have a look at it.

Original issue reported on code.google.com by Hershe...@gmail.com on 5 May 2011 at 10:09

GoogleCodeExporter commented 9 years ago
Would you be able to update to the latest 0.6.0 beta? Lots of changes have been 
made since the Helmut release.

If you can post a sample of the HTML being rendered that would help determining 
what's going on. Just FYI, the most typical cause of 500 errors on simple 
documents is a table cell larger than a single page.

We'll take a look at the xdebug.txt when we get a chance to see if there's 
anything of note.

Original comment by eclecticgeek on 11 May 2011 at 5:30

GoogleCodeExporter commented 9 years ago
Tried that but unfortunately didn't solve the problem. :(

As far as the HTML, not it's rendered dynamically and it would be difficult I 
think to try to extra that.

Original comment by Hershe...@gmail.com on 16 May 2011 at 5:35

GoogleCodeExporter commented 9 years ago
DOMPDF 0.6.0 will return the working HTML document as a string if you call 
$dompdf->output_html().

Original comment by eclecticgeek on 16 May 2011 at 6:25

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00