By shoulders on Sunday, 25 March 2018
Posted in Technical Issues
Replies 9
Likes 0
Views 2.1K
Votes 0
Hi,

I think I have found a small bug. this does not create any issues that I know off but does require a little fix to prevent an error.

I only get this error when I turn the Joomla error level display to Maximum.

The Error

Notice: Undefined property: stdClass::$id in /home/quanta/public_html/administrator/components/com_komento/includes/komento.php on line 1252


Location
https://quantumwarp.com/feedback/category/1-qwcrm

Cause
This is caused because of how the integration with 3rd party applications by Komento works. In my case RSFeedback. I wrote the integration plugin using the instructions from stackideas and my additions to those instructions.

The integration works as expected.

However this error is caused by being on a category/'non item' page where there is no 'item ID' and the komento plugin is enabled.

Fix
A variable check or something similiar to isset()

Finally
This is a low priority issue, if it is an issue! But can you have a look and add it to your internal list if it should be fixed please.

I can provide you with some login details if needed.

Thanks
This isn't a bug in Komento but a bug in your implementation method. If you look closely on the com_content.php integrations, there is a mapping field that maps back with the column from your table, http://take.ms/YGDdt

In your case, your custom integration is missing this mapping. The id is the unique identifier that Komento associates itself with. I think you should map it back to the id column from RSFeedback.
·
Sunday, 25 March 2018 22:12
·
0 Likes
·
0 Votes
·
0 Comments
·
My integration plugin 100% works.

I have checked the setting you mentions and it is correctly mapped. If it was not mapped Komento would not work?

I hope you get some time off.
·
Monday, 26 March 2018 01:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Monday, 26 March 2018 17:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I have done a backup and added my site details to the 'Site Details' option.

You might want to re-read my first post. This error only appears on a non-item page and the RSFeedback integration all works. You just need to add a check for $id to see if it is present.

Anyway I will leave it to you guys to have a look.

Thanks.
·
Monday, 26 March 2018 17:49
·
0 Likes
·
0 Votes
·
0 Comments
·
The errors are being generated not because of Komento but it is complaining about invalid codes in your komento_plugin,

1. id_field in your komento_plugin.php, http://take.ms/KnunE . It should just be ->id

2. permalink in your komento_plugin.php, http://take.ms/MlIYK . I am not sure of the correct column title but you need to check the codes.
·
Monday, 26 March 2018 22:37
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks mark

I will investigate and post my results here. This is wiered because the plugin works.
·
Monday, 26 March 2018 23:05
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem If there are no errors from com_content then certainly something isn't right in the plugin.
·
Monday, 26 March 2018 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post