Undefined variable: displayData

Phoca PDF - creating PDF documents in Joomla! CMS
NicoleRosset
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 17 Aug 2014, 16:04

Undefined variable: displayData

Post by NicoleRosset »

Joomla, 3.4.8 - yootheme template - PhocaPDF

Hello,

I followed the instructions on the page "Phoca PDF Installation and Usage - Joomla! 3.3".

On steop 3b, I tried to modify the correct file, which seems to be :
/templates/yoo_nano3/warp/systems/joomla/layouts/com_content/article/default.php

But I got the following error messages :
Notice: Undefined variable: displayData in /var/www/www.mydomain.com/templates/yoo_nano3/wa ... efault.php on line 29

Notice: Trying to get property of non-object in /var/www/www.mydomain.com/administrator/componen ... ocapdf.php on line 83

Fatal error: Call to a member function get() on a non-object in /var/www/www.mydomain.com/administrator/componen ... ocapdf.php on line 87
Line 29 being the 4th one below :
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);
Can you tell me what's wrong ?
Thank you very much in advance
Nicole
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Undefined variable: displayData

Post by Jan »

Hi, is Phoca PDF component and Phoca PDF content plugin installed on your site?

Jan
If you find Phoca extensions useful, please support the project
NicoleRosset
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 17 Aug 2014, 16:04

Re: Undefined variable: displayData

Post by NicoleRosset »

Hi,
Sorry for not having answered before ... I didn't get a notification that you had posted a reply and I was temporarily working on something else.

Yes I installed both :
com_phocapdf_v3.0.2.zip and plg_system_phocapdf_v3.0.2.zip
and I activated the plugin.

Thank you very much
Nicole
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Undefined variable: displayData

Post by Jan »

Hmm, then if there is the latest version of plugin and component, try to check your template.

if it includes this file: \layouts\joomla\content\icons.php which is normally included by article content and this file has defined the variable: $displayData
:idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply