Hi, I get the following error when I upload the User Karma module to the modules folder.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in modules/user_karma/user_karma.module on line 779

Once I remove User Karma from the modules folder the error disappears and my site works again.

Can you please help me?

Comments

mercmobily’s picture

Status: Active » Fixed

Hi,

My apologies. I forgot to cvs-commit the fix...

It should work as soon as the daily snapshot is done on the Drupal server!

Alternatively, just change the function user_karma_user_karma() into:

function user_karma_user_karma($uid){
$r=votingapi_get_vote('user',$uid, 'karma_points','karma',1);
return (int)$r->value;
}

Bye!

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)