Page 1 of 1

Fatal error

Posted: 21 Jan 2015, 01:58
by seabird
Hello,

I have joomla 3.3.6 and flexicontent.
I try to use phoca PDF 3.0.2. But if I put this code:

Code: Select all

<?php $phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $params);
} ?>

<?php echo $phocaPDF; ?>
I have a fatal error:
Fatal error: Call to a member function get() on a non-object in \administrator\components\com_phocapdf\helpers\phocapdf.php on line 87

Thanks,

Regards,

Eric

Re: Fatal error

Posted: 23 Jan 2015, 00:18
by Jan
Hi, on that line, the parameters from article are managed, so you need to test if your flexicontent (unfortunately I don't know it) provides somehow the parameters from article.

For example on that error line:
if ($params->get('show_icons')) {

we ask for parameter from article - if it is set in article, that the icons will be displayed :idea:

Jan