By Andrew Heritage on Tuesday, 28 October 2014
Posted in Technical Issues
Likes 0
Views 758
Votes 0
So I just saw in my stream the attached (that someone got the badge Points acheiver) - as you can see from attached screen shot, there is no name associated with it and I have checked and (a)no one has that avatar and (b) only one person has 100 or more points so far and they got that a while back. What's worse even is that this event is repeated many times down the "everyone" stream.
Hello Andrew,

Is it possible for you to provide us with the FTP access to the site so that I can debug this on the site? For some reasons, the stream is being sourced from a guest but looking at the library, if the user id is 0, it will never go through unless the user was deleted from the site. Did you delete any users recently from the site?
·
Tuesday, 28 October 2014 13:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I deleted three accounts on the 26th which were all accounts that had been created but the users had never logged in to the site.

I have put site and FTP detals in.
·
Tuesday, 28 October 2014 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Just to let you know I have deleted these listings from the stream so as not to confuse the users. I figured from your last messages you had seen the background behind these events. Have you any thoughts on what is happening?
·
Thursday, 30 October 2014 01:57
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Andrew Heritage,

Sorry for late reply to this,
I have tested in locally, it seems like unable to reproduce this issues from our end.
because by default behaviour after admin deleted that user, then those user badges stream will be auto removed.

If the issues still persists in the future, can I have the permission to reduce that "Points Achiever" badge frequency so that we can test around with this?
·
Thursday, 30 October 2014 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue is still persisting! I have copied the current state of my live website and created a test website which I am happy for you to use for testing by making changes to badges etc. I have updated the site access details.
·
Friday, 31 October 2014 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I had this issue aswell, one person got two same badges at the same time, but it happened only once, when i removed the badge, both has removed, its kinda dublication happened.
·
Friday, 31 October 2014 02:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

I am sorry for the delay of this reply and thank for setting up a test environment for us

Regarding your issue, it seems like only the stream has the user_id of 0, and particularly only happened to user badge achievement stream items.. I checked against the points / badges table and there is no user id which is 0. However, I cannot replicate this issue at my local instance

Anyway, I've added a checking to prevent points / badges assignment if the user is invalid. This will also prevent the stream item creation for badges achievement stream item. Below is the file I've modified at your test site.

JOOMLA/administrator/components/com_easysocial/includes/points/points.php
JOOMLA/administrator/components/com_easysocial/includes/badges/badges.php

You will need to copy these two files into your live site. And, to clean up the invalid stream items, please run the below sql statement.


delete a, b
from jos_social_stream as a
inner join jos_social_stream_item as b on a.id = b.uid
where a.actor_id = 0
and a.context_type = 'badges';


Rename the jos_ table prefix to your own Joomla table prefix.

Let me know if you still facing the same issue after the above fix applied at your live site.

Hope this help and have a nice day
Sam
·
Friday, 31 October 2014 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Steve wrote:

Hello,

I had this issue aswell, one person got two same badges at the same time, but it happened only once, when i removed the badge, both has removed, its kinda dublication happened.


Hi Steve, can you download the attached two php files and copy the files to your EasySocial?

1. Copy 'badges.php' to JOOMLA/administrator/components/com_easysocial/includes/badges/ and overwrite the existing badges.php file.
2. Copy 'points.php' to JOOMLA/administrator/components/com_easysocial/includes/points/ and overwrite the existing points.php file.

Remember to backup your original files before you overwrite with the attached one.

Let me know the issue still persist after applied the above fix.

Hope this help and have a nice day
Sam
·
Friday, 31 October 2014 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
I got the same issue a few days ago and it started issuing "points achiever" badges for user0 and then continued with user1, user2, user3, etc till it reached the first valid user ID ... not sure how many it would have done if the site hadn't fatal errored due to a lack of memory as it was I ended up deleting about five thousand of them, and like someone reported above they were duplicates as you could add a comment into one of them and the same comment would appear in the next 50 or so of them.

I disabled the "points achiever badge".

I don't know if this is what started it, but at the time it started issuing the badges I was uploading a number of pictures into some group albums and no I hadn't deleted any users.
·
Saturday, 01 November 2014 16:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Sam wrote:

Hi Steve, can you download the attached two php files and copy the files to your EasySocial?

1. Copy 'badges.php' to JOOMLA/administrator/components/com_easysocial/includes/badges/ and overwrite the existing badges.php file.
2. Copy 'points.php' to JOOMLA/administrator/components/com_easysocial/includes/points/ and overwrite the existing points.php file.

Remember to backup your original files before you overwrite with the attached one.

Let me know the issue still persist after applied the above fix.

Hope this help and have a nice day


Thank You Sam,

I have applied a fix
·
Saturday, 01 November 2014 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Cathy,

The points achiever badge is basically for users who earned a specific amount of points on the system. Can you try the patch which Sam provided earlier and see if the issue still persists?

Steve,

Are you still having similar problems after applying the patch?
·
Saturday, 01 November 2014 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hello Cathy,

The points achiever badge is basically for users who earned a specific amount of points on the system. Can you try the patch which Sam provided earlier and see if the issue still persists?...


I've downloaded the patch, will report back if it happens again
·
Monday, 03 November 2014 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Cathy,

Sure, do let us know if the same issue happen again and if possible, let us know how we can reproduce so that we can address the issue better
Have a nice day!
Sam
·
Monday, 03 November 2014 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam, thanks for the changes. I have copied those files over to my live site now so will continue to watch but hopefully it will solve the problem. Will let you know (it was adding the spurious entries several times everyday so should be easy to see if it is fixed.)
·
Monday, 03 November 2014 20:31
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Andrew Heritage,

Okay, Keep us updated then.
·
Tuesday, 04 November 2014 00:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Well got through one day and no spurious posts so looking good
·
Tuesday, 04 November 2014 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
hello Andrew,

Thanks for getting back to us that was work fine

I will mark this thread as resolved and lock it to avoid any confusions in the future, but if you need any help please feel free to start a new thread in our forums.
·
Tuesday, 04 November 2014 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post