I've got several problems going on but this one mirrors this post: http://drupal.org/node/115826. I'm getting the following slew of errors when I hit the retroactive part of the module. Here's one pulled from the log:
Column count doesn't match value count at row 1 query: INSERT INTO userpoints VALUES (46, 0, 1174098663) in /home/getthemb/public_html/includes/database.mysql.inc on line 172.
I can't get the invite module to work with userpoints either -- no one is getting credited for their referrals. I'm hoping that fixing this database error may make the invite module work with it, too.
I'm not techie at all and have no idea how to go about fixing this. Any help would be very welcomed!
Comments
Comment #1
dami commentedYes, it's a bug and is easy to fix. I have submitted an issue here:
http://drupal.org/node/127921
Comment #2
moominmama commentedI'm enough of a newbie that I don't understand that post or how to fix it. Can anyone walk me through it?
Comment #3
dami commentedI didn't test it but a dirty fix might be just changing line 67:
to
Comment #4
moominmama commentedI'm sorry -- you are being so generous with your time!
Which file do I need to edit?
(And thank you thank you for helping with this!)
Comment #5
dami commenteduserpoints/contrib/userpoints_retroactive/userpoints_retroactive.module
Again, I didn't test it. So don't be surprised if it doesn't work :)
Comment #6
moominmama commentedIt worked!
Original line:
db_query('INSERT INTO {userpoints} VALUES (%d, 0, %d)', $user->uid, time());
Changed to:
db_query('INSERT INTO {userpoints} VALUES (%d, 0, %d, 0)', $user->uid, time());
Everything's grand! Thanks!
Comment #7
changlin commentedThanks dami.
Just a small problem, the changed script should be as following:
db_query('INSERT INTO {userpoints} VALUES (%d, 0, 0, %d)', $user->uid, time());
The Table structure is ( uid , points, max_points, last_update)
Comment #8
kbahey commentedCommitted to 5.x.
Comment #9
mjohnq3 commentedIn the version of the Userpoints that I just downloaded, 5.x-2.1, (retroactive module v 1.1.2.4 2007/03/10 14:54:50 kbahey) the fix shown in Item #6 works but the fix shown in Item #7 does not and still produces the error(s).
Comment #10
kbahey commentedFixed in 2.2
Comment #11
(not verified) commented