PHP Parse error: parse error, unexpected T_OBJECT_OPERATOR in /httpdocs/modules/user_karma/user_karma.module on line 779,
here's the code at that line...
return (int)votingapi_get_vote('user',$uid, 'karma_points','karma',1)->value;
i thought it might be because i was using VotingAPI 5x.1.5, but I tried the dev as well and got it...
i don't know enough about VotingAPI to know what's going wrong or if it's something in my install?
Thanks,
K. Paul Mallasch - Publisher
kpaul media
Comments
Comment #1
mercmobily commentedHi,
Quick question: which version of PHP do you have?
I have updated the development's snapshot. I changed that line into:
$r=votingapi_get_vote('user',$uid, 'karma_points','karma',1);
return (int)$r->value;
Does it fix the problem?
Bye!
Merc.
Comment #2
kpaul commentedPHP 4.3.9 (cgi) (built: Sep 20 2007 19:31:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Replacing with that fixed it.
Haven't turned it on to test yet, though. I'm thinking there might be some jquery.js issues, though, since i still have the one included with jquery_update module.
Thanks,
kpaul
Comment #3
kpaul commentedComment #4
mercmobily commentedHi,
A lot of people out there are having jquery issues with the forms...
The trouble is that I _need_ the latest version of jquery to do what I do with the forms. If you see the code, you'll know what I mean.
When Drupal 6 is out, this will be a non-issue because D6 WILL come with the latest jquery. Till then...
Merc.
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.