Zunenonooo / dompdf

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

PHP Fatal Error: Trying to clone an uncloneable object #506

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using Drupal Print Module with the dompdf(0.6.0 beta3) library with PHP 5.2.8 
on a Linux server.  The server throws this error:

PHP Fatal error:  Trying to clone an uncloneable object of class Imagick in 
[path]/dompdf/lib/class.pdf.php on line 4329

What I don't understand is that I got the module to work as is on a different 
server that uses php 4.4.9. (Same Drupal Install)

In the end I commented out lines 4324-4349 in class.pdf.php and finally got it 
to output the page.  Just thought I should report the bug whatever it is.

Original issue reported on code.google.com by ManOfA...@gmail.com on 13 Jun 2012 at 5:50

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 13 Jun 2012 at 7:04

GoogleCodeExporter commented 8 years ago
PHP 4.4.9? With dompdf? That would be surprising, unless the print module 
automagically selects your backend since dompdf doesn't support PHP 4.x.

At any rate, you probably didn't have the Imagick extension installed on the 
other system. In which case the relevant code would not have been executed.

Original comment by eclecticgeek on 13 Jun 2012 at 7:42

GoogleCodeExporter commented 8 years ago
Im having same problem. Worked on developement server but get error on live.  
Did you find a fix?

Original comment by lea...@clearsquares.com on 24 Oct 2012 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16