By Claudio Micci on Sunday, 13 May 2018
Posted in Technical Issues
Likes 0
Views 1.1K
Votes 0
Hi there,

I'm getting this error

Error: Cannot access empty property: Cannot access empty property

when Comments module is enabled for Joomrecipe only.
Please have a look at this.
The menu item is a link to a joomla's article containing only 3 words (just to test the module). But it doesn't matter if the menu link is a joomla article or a Joomrecipe's related item.

When the module is enabled for all it works (per say), it shows only Joomla's article comments, and only as far as the limit is 5 (or lower). If I set limit 6 (or greater) I get again the same error Error:
Cannot access empty property
(but there are more than 5 joomla's article comments as you can see surfing all
Test
menu items.

Any hint?

Thanks in advance!
Is it can update your FTP user account to have permission to access your current site Joomla root folder? Because now i only see this empty directory folder http://take.ms/3yWTf

The reason why you hitting this error is because somewhere missing this state attribute but when i tried added into this plugin file JoomlaFolder/components/com_komento/komento_plugin/com_joomrecipe.php but it seems like it still hitting the same error.

May i know do you still remember where you added these array into your site? For example array('hits' => 'nb_views');

array(6) {
["id"]=>
string(2) "id"
["title"]=>
string(5) "title"
["catid"]=>
string(6) "cat_id"
["permalink"]=>
string(9) "permalink"
["hits"]=>
string(8) "nb_views"
["created_by"]=>
string(10) "created_by"
}

·
Monday, 14 May 2018 13:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Yes, it is used in the plugin I made (components/com_komento/komento_plugins/com_joomrecipe.php), following the instruction. Is the variable map declaration at the biginning of the plugin file

class KomentoComjoomrecipe extends KomentoExtension
{
public $_item;

// map the keys here
public $_map = array(
// not needed with custom getContentId()
'id' => 'recipeId',

// not needed with custom getContentTitle()
'title' => 'recipeTitle',

// not needed with custom getContentHits()
'hits' => 'recipeViews',

// not needed with custom getAuthorId()
'created_by' => 'recipeCreatedByby',

// not needed with custom getCategoryId()
'catid' => 'recipeCategoryId',

// not needed with custom getContentPermalink()
'permalink' => 'permalink',

'state' => 'published'
);
.
BTW
I set a new ftp account. Prepend 'new' to the username, all the rest is the same. Just tested it and it works.

Thanks a lot.
·
Monday, 14 May 2018 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
The last 'state' was i added one.

After checked further, it seems like you have added this following komento plugin php file under this JoomRecipe directory folder which caused this.

I already help you temporary renamed this file -> JoomlaFolder/components/com_joomrecipe/komento_plugin.php_

It should able to work fine now.

Note : If you already added that integration file from JoomlaFolder/components/com_komento/komento_plugins/com_joomrecipe.php so you do not need this integration file as well.
JoomlaFolder/components/com_joomrecipe/komento_plugin.php
·
Monday, 14 May 2018 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
OMG!
Thank you!
That was a wrong upload I missed..
Thank you!

However, the comment form is not shown anymore in joomrecipe component...
·
Monday, 14 May 2018 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
if i am not wrong, this joomRecipe extension already have their built-in Komento integration file based on what i checked the code.

I already temporary renamed your original file JoomlaFolder/components/com_komento/komento_plugins/com_joomrecipe.php then load back this komento integration plugin file into JoomlaFolder/components/com_joomrecipe/komento_plugin.php

Perhaps you can try extract this joomRecipe installer file and see whether there already have this komento_plugin file.

If yes, perhaps you can update to this joomRecipe developer to update this 'state' variable map declaration from this Komento_plugin.php file.
·
Monday, 14 May 2018 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I did that file following the instructions you published in documentation. So that file has not any installer.
It's strange that the file is not loaded when it resides in komento plugins folder...

The component has an option to use the komento ratings only instead of its own, nothing more.

Anyway, now it works, so I'm happy.
Thank you.
·
Friday, 18 May 2018 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating and glad that your issue is resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Saturday, 19 May 2018 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post