Closed (won't fix)
Project:
User Karma
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2008 at 17:32 UTC
Updated:
7 Mar 2010 at 18:24 UTC
Hi, I get this error (and a white screen) whenever an unregistered user tries to post something.
Fatal error: Unsupported operand types in /home/webadmin/html/sites/all/modules/votingapi/votingapi.module on line 518
I'm using EVF and Fivestar on the nodes, so maybe that has something to do with it.
I also get this if I use the admin to edit any node to be posted by Anon.
Comments
Comment #1
Flying Drupalist commentedOK, I forgot that I enabled User Karma earlier, and so I'm pretty sure this has to do with that.
Moving that there.
Comment #2
mercmobily commentedHi,
I am marking it as Won't Fix because I am 99.9% sure this is the cause.
The VotingAPI module you are using is not being liked by your PHP version. The error is on a different module -- can't really help you there.
Please update your PHP, or submit the request to the VotingAPI module.
Merc.
Comment #3
Ainur commentedLooks like it is due to user_karma_calculate_karma is done to anonymous users, add this code to the beginning of user_karma_calculate_karma()