Extension talk:Pdf Export Dompdf

Class 'DOMPDF' not found
I've got dompdf and the extension both installed, but it looks like it's not picking up an include file somewhere. The configuration is right nearest I can tell also. I'm using MediaWiki 1.12. --N0ctrnl 21:01, 28 March 2008 (UTC) [Fri Mar 28 15:55:08 2008] [error] [client 10.1.1.1] PHP Fatal error: Class 'DOMPDF' not found in /var/www/html/wiki/extensions/PdfExport/PdfExport.php on line 142, referer: http://server/wiki/index.php/Main_Page


 * From looking at the output (and experimenting with some includes), it looks like the dompdf/include/*.cls.php files aren't being loaded properly. If I manually include "$IP/dompdf/include/dompdf.cls.php", the DOMPDF class error goes away and another pops up.  If I continue doing that with the cls.php files that hold each missing class, it continues to knock out class errors.  The problem with that is that you'd have to include a ton of them in order to get it to work.


 * Now, the line in the dompdf_config.inc.php file has this line in it

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


 * That should pick up the right files that hold the class info unless I'm missing something. It just isn't.  Then, after it has included all of them, the PdfExport.php file includes the dompdf_config.inc.php on line 183 with the following:

require_once("$IP/extensions/dompdf/dompdf_config.inc.php");


 * Anybody else seeing errors like this or can point me in the right direction to debug it? --168.166.124.100 21:25, 8 April 2008 (UTC)

class dompdf
add

to your LocalSettings.php
 * Did that already. The extension wouldn't be loading up at all without it :) I've checked and double checked, and just can't figure out what's up. --N0ctrnl 18:47, 6 April 2008 (UTC)

Keine Installation möglich / NO Installation possible

PHP sagt / PHP says: The Class DOMPDF is not found in Pdfexport.php on line 142