To help those developers who want to integrate with Phoca PDF, there should be one more error handling case in phocapdfrender.php around line cca. 136.
Something similar:
Code: Select all
default:
$dispatcher = JDispatcher::getInstance();
if (JPluginhelper::isEnabled('phocapdf',strtolower($t))){
JPluginHelper::importPlugin( 'phocapdf' );
$results = $dispatcher->trigger('onBeforeDisplayPDF'.$t, array (&$pdf, &$content, &$document));
} else {
return JError::raiseError('PDF ERROR', 'Phoca PDF - '.$t.' plugin is disabled or not installed');
}
break;