Posted by slater101 on August 4, 2011 at 12:45am
3 followers
| Project: | User Points |
| Version: | 7.x-1.0-rc1 |
| Component: | Code: userpoints |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Giving false points to 2 users and cannot be deleted, Yet shows no record of them ever receiving these points. Rules is turned off so it is not an attribute of rules.. Just started doing this, Any suggestions?
Comments
#1
No idea what you mean with "false" points, please provide more details, if possible with screenshots. These uses have points but you never gave them?
#2
Yes.
sorry I was short on my explanation I was on my phone at the time, here is a better description of my issue.
Example:
2 points classes (Battle) (community)
[Members receive points when posting etc... to the community class] (Battle points must be given by the admin)
*MEMBER 1 has 102 community points and 99 battle points (no battle points have ever been given)
*Admin : try to delete 99 battle points,
*MEMBER 1 now has 2 battle points
*Admin : try to delete 2 battle points
*MEMBER 1 now has 99 battle points again.??
Cycle repeats itself, yet never shows any signs of giving points to the member from any other form of service.
NOW also getting this error when trying to view a members userpoints from the admin account (shows points after page refresh but still shows error message)
Notice: Undefined index: 7 in userpoints_filter_query() (line 1402 of /home/ventbbxc/public_html/modules/userpoints/userpoints.module).
#3
Are you using 7.x-1.0-rc1? There aren't many changes, but just to be sure, can you try with 7.x-1.x-dev?
That error you are getting is new code, but I'm not sure where they are coming from.
Is it possible that you had points in another category that you have deleted?
Also, have a look at the rows in {userpoints} (total per category) and {userpoints} (single transactions) for those users, do they show the correct values? is the sum of the single transactions different from the total value for those users? Also, are there category id's (tid column) that don't exist anymore?
#4
Im slightly confused so I will try to hit all angles.
Are you asking if the sum of the points is correct based on the points given in that category? If so this is the best I can explain it.
The single transactions show no transaction of addition + at any point in time. During the entire history of the users existance. The sum of 99 points for "member 1" came from a black hole. I can find no existence of any operation giving the points..
Im going to use "Troublesome" when talking about error points
If thats not what your asking for then maybe this is. If you want to know if the points of the 2 categories add up correctly then , yes they do. The sum of category 1 and category 2 is a proper solution. To add to that, if I delete some points from the category that is being troublesome, once the points have deducted the sum will then still be correct. But if at any point I attempt to set the "Troublesome" category to 0 or to a negative - number then it will reset to 99 points.
EDIT!: Now that I think back it started after installing "BestReply Module" The module was set to the wrong "Troublesome" category. I tested it and noticed that it added the points to the wrong category. The two user accounts that are having the points issue are the ones used in the "Best Reply" test. User 1 was set to give the best reply and user 2 was the poster of the named "Best reply" User 1 now has 99 "Troublesome" points and user 2 now has 27 "Troublesome" points. The best reply setter was setup to be given only 1 point and the best reply poster was set up to be given 2 points.
I hope this helps more.
I will try to use the dev version after I do a full backup since this is on a production site. I will update you with the results once I have tested it.
~slater
#5
Anything new to report?
In short, unless you can provide me with reproducable steps (install module a, b, c then do x, y, z => FAIL) starting with a clean Drupal 7 install, I am most likely not able to help you.
#6
Do you think uninstalling and reinstalling the module might help me?
#7
Maybe, if you don't mind loosing your existing configuration and data.
You could also send me an export of the userpoints and userpoints_txn tables and tell mich which user id's are affected by this, then I can have a look at your data.
#8
I suspect that this is related with this other issue #1353532: Uncategorized points are not properly calculated.
I got some similar to what is described in #2