SourceForge Forum Archive This is an archive of the old dompdf sourceforge forums. Please donate. This gets a lot of traffic and bandwidth costs money. |
|
| htmlhelper.cls.php missing Go Back |
|
htmlhelper.cls.php missing hello. i encounter this strange error when using dompdf. require_once exception is being thrown complaining about htmlhelper.cls.php being missing. and i check the include directory. it's not there. i re-download the package to check, but its not there. anyone know whats going on? google returned nothing about this. |
|
RE: htmlhelper.cls.php missing *Note: Support will only be available from the Google group in the future: <http://groups.google.com/group/dompdf>* I'm not familiar with this error and didn't find any reference to it in the DOMPDF source. Are you sure this error is being produced by DOMPDF and not some other PHP code (if you are generating your HTML document rather than loading an HTML file)? Please post the full text of the error message if you are able. It should help in debugging your problem. |
|
RE: htmlhelper.cls.php missing Fatal error: require_once() [function.require]: Failed opening required 'vendors/dompdf/include/htmlhelper.cls.php' in vendors/dompdf/dompdf_config.inc.php on line 194 yes it is produced by dompdf. i am generating the html content. i can actually turn off all error_reporting and output the pdf anyway. but i dont see any css being applied like background image. so i thought this might be the reason. i should also mention that i am doing all these in cakephp. |
|
RE: htmlhelper.cls.php missing *Note: Support will only be available from the Google group in the future: <http://groups.google.com/group/dompdf>*
Is your copy of DOMPDF contained within some kind of framework? DOMPDF includes an autoload function that will attempt to load any class files that have not yet been loaded. This function could be conflicting with the autoload function that's part of your framework.
I'd say you can just ignore this error, but it will cause a halt to your script execution. The next version of DOMPDF includes a more intelligent autoload setup. In the meantime I believe you can work around the error by replacing the DOMPDF_autoload() found in dompdf_config.inc.php with the following version:
function DOMPDF_autoload($class) {
$filename = DOMPDF_INC_DIR . "/" . mb_strtolower($class) . ".cls.php";
if ( is_file($filename) )
require_once($filename);
}
|