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

Flying Drupalist’s picture

Project: Voting API » User Karma
Version: 6.x-2.x-dev » 6.x-1.x-dev
Category: support » bug
Priority: Critical » Normal

OK, I forgot that I enabled User Karma earlier, and so I'm pretty sure this has to do with that.

Moving that there.

mercmobily’s picture

Status: Active » Closed (won't fix)

Hi,

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.

Ainur’s picture

Looks 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()

  if ($uid == 0) {
    return FALSE;
  }