I am using Voting Actions as part of the Vote Up Down package to let users promote posts to the front page. Everything seems to work on the voting side, but I can't Voting Actions to save my selected actions. I try to set it up to trigger by points over 2, but it always reverts back to percentage with no value listed. Have you seen this before? I have searched the forums for a couple of days but have found nothing. I would greatly appreciate any advice you can offer. Thanks.

Comments

drupalzack’s picture

I'm seeing the same problem too, but only for comments not nodes. I have vote_up_down module installed, not simplevote.

drupalzack’s picture

Ok. Did some more tests. And found a reliable way to simulate this bug:

Create a comment action set - UnpublishComment
ValueType = Points
Tag=vote
function=average
comparison=equal to
value=0

Don't bother setting action and save. This will not be saved in the database.

Now create another filter criteria, but now set the value to anything other than 0 and this will be saved.

A workaround is to create a filter criteria with a value != 0 and then edit it to 0. This seems to work.

Zack

drupalzack’s picture

Well not quite!

So I tested a rule which whould unpublish a comment with votingup/down module if the sum of the comments is less than zero. When you rate down a comment so that the score is less than zero, I get this error

Fatal error: Function name must be a string in C:\wamp\www\drupal3\modules\actions\actions.module on line 387

This is possibly a bug in the actions module.

drupalzack’s picture

Digging deeper, on the previous error, it is looking for the function 'action_comment_unpublish' in actions.inc instead of voting_actions.inc. That's probably why this error is coming.

Because the same rule with a node works, but not with a comment. And the only diff. between the two is, comment action is defined in voting_actions.inc and node unpublish action is in actions.inc.

I could be wrong since my knowledge of php is zilch, but this is what I could gather from the code.

skor’s picture

Here's what works for me:
Value type = Points
tag =
function=average
comparison = 'is less than'
value = 1

This on a fresh install of 4.7.2, using the latest versions of voting api, voting actions, and vote up/down.

I have another install that I'm having trouble updating to the latest versions and getting it to work though.

skor’s picture

Sorry, meant:
value = 0

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Voting Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.