Page 1 of 1

Undefined variable: displayData

Posted: 12 Jan 2016, 16:23
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

Re: Undefined variable: displayData

Posted: 15 Jan 2016, 00:05
by Jan
Hi, is Phoca PDF component and Phoca PDF content plugin installed on your site?

Jan

Re: Undefined variable: displayData

Posted: 31 Jan 2016, 12:27
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

Re: Undefined variable: displayData

Posted: 03 Feb 2016, 10:44
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