Hello,

When i installed dompdf (version 0.5.1), i had this issue :

Warning require_once ('.../firephp.cls.php');

It seems that there is a conflict between dompdf autoload function and the devel module. So if you have the same issue try to disable devel module.

You can also add this piece of code in DOMPDF_autoload function, in dompdf_config.in.php file

if (mb_strtolower($class)== 'firephp'){
  return;
}

Comments

WorldFallz’s picture

I can confirm this fixed it for me.

Probably the best thing to do is fix this in devel, I'll try and take a look.

bricef’s picture

Yeah you're right.

pearcec’s picture

sub

PhenX’s picture

This problem is solved in DOMPDF 0.6 beta 2
See http://code.google.com/p/dompdf/wiki/ReleaseNotes

jcnventura’s picture

Status: Active » Closed (won't fix)

Indeed, this is a dompdf bug and should be reported and fixed by dompdf.

Sk8erPeter’s picture

I can confirm what PhenX said, I had the same issue, I just changed the version to 0.6 beta 2, problem solved, didn't have to hack anything.

amontero’s picture

Me too.
Fails with 0.5.2 and works with 0.6 beta2.

EmanueleQuinto’s picture

The error as seen in the apache log:

[Fri Jan 06 14:47:38 2012] [error] [client 130.212.9.235] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/apps/httpd/www/html/sites/all/libraries/dompdf/include/firephp.cls.php' (include_path='.:/usr/share/pear:/usr/share/php') in /apps/httpd/www/html/sites/all/libraries/dompdf/dompdf_config.inc.php on line 208, referer: https://localhost/sfstatebulletin/node/284

The autoload in dompdf now (http://code.google.com/p/dompdf/source/browse/tags/dompdf_0-6-0_beta2/do...) tests the existence of a file before require_once.

function DOMPDF_autoload($class) {
  $filename = DOMPDF_INC_DIR . "/" . mb_strtolower($class) . ".cls.php";

  if ( is_file($filename) )
    require_once($filename);
}

Actually the code was changed at R91 (http://code.google.com/p/dompdf/source/detail?r=90&path=/trunk/dompdf/do...): any release after that revision (0.5.2.alpha1 and 0.6.x) should work.