By Bastian (TeamAccount) on Sunday, 24 April 2016
Posted in General Issues
Replies 6
Likes 0
Views 1.3K
Votes 0
I just play arround in my demo environment (so i couldn´t give a link) with the "Komento Activities" module. However all it shows in the code is the following:


<div class="kmt-mod mod_komento_activities kmt-mod-activities">
</div>


when i use a template overwrite and add a

print_r($activities);


it showed the following:

Array
(
)


So it looks like the activities array is fully empty. Any idea what might cause that?

P.S.
- The Komento Activities module is activated (version 1.0.4).
- All my postings on my demo side are written by visitors who do not have a joomla account (not sure if thats important to know)

Update / Troubleshooting:
changed the "mod_komento_activities.php" and put the following in it:

print_r($model);


which showed some results. However the following:

print_r($activities);


Showed an empty array as well... So it looks like "getUserActivities" didn´t give out some results...

So I had a peak inside activity.php and saw that you query the komento_activities DB, however its fully empty on my demo system yet. BUT i have comments ...

I checked now my live website and inside my live website I have some entries in the komento_activities DB. BUT the oldest ist from 2012-11-20 12:16:04 while my last comment is from 2016-03-26 06:28:06

Conclusion:
So it looks like that something is no longer filling the komento_activities DB after a upgrade from the Komento application (or i disabled someting which i couldn´t find).

So can you check that please? You should be able to reproduce that issue in your environment with a fresh Komento installation like i have done in my demo environment.
I just created some hard coded entries in the DB on my test system, which results that my test system now shows some content in the module. So the question which leave open is now why there is no content in the DB table, and how to fix ;-). But that's up to the support guys. However i hope the troubleshooting above lead to a solution. By the way i would be happy if we could run a fix script inside the GUI (maybe the upgrade from v1 to v2 section could be used).
·
Monday, 25 April 2016 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bastian,

The Komento Activities only records a data created by registered user. As you mentioned here: All my postings on my demo side are written by visitors who do not have a joomla account. All their activities won't be in the Activities table.
·
Monday, 25 April 2016 11:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, and postings from visitors/guests aren´t then no activities? I could understand if the module has a option which said "show only activities from users with an account". But as the ACL allows also visitors/guests to post a comment this should be in the activities as well.
·
Monday, 25 April 2016 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bastian,

Currently, we add a record in the database based on the user id. Since guest doesn't has user id, we didn't include it in the table. However, you can always suggest this as feature request here: http://stackideas.com/voices/komento
·
Monday, 25 April 2016 15:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nik,

I see, but for me this is rather a bug and not a feature request (like here). I mean if a guest/visitor user post something this is a activity (or what is that then?). I played with the content inside the DB mentioned above and if i leave the user ID open it will come up as guest inside the module output. So its still possible as far as I see.

I mean the module IS called "Komento Activities" which should include guest postings as well. Otherwise the name should be something like "Komento registered users Activities".

So currently if somebody use that module and allows guest/visitor posts we miss a lot of useful postings to show on our website. I mean if you wish to leave quickly a comment you didn´t wish to login. So posting a comment is totally different then using a forum where you have a discussion. But most comments are only "thank you" ... "great article" ... "got that too and its great"... which didn´t require a further discussion. So from my point of view most postings might be done by guests rather then registered users.
·
Tuesday, 26 April 2016 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bastian,

Thanks for the input. I've you have added a voice in our voices page. I will implement it in the next release. For now, please replace the attached file in: ../components/com_komento/helpers/activity.php and add a new comment as guest. Let us know how it goes.
·
Tuesday, 26 April 2016 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post