Fatal error

Phoca PDF - creating PDF documents in Joomla! CMS
seabird
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 Jan 2015, 01:53

Fatal error

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Fatal error

Post 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
If you find Phoca extensions useful, please support the project
Post Reply