Voting Actions always reverts to defaults

kirkcaraway - June 3, 2006 - 18:28
Project:Voting Actions
Version:4.7.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

drupalzack - July 2, 2006 - 02:58

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

#2

drupalzack - July 2, 2006 - 03:42

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

#3

drupalzack - July 2, 2006 - 03:48

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.

#4

drupalzack - July 2, 2006 - 04:00

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.

#5

skor - July 22, 2006 - 04:37

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.

#6

skor - July 22, 2006 - 04:38

Sorry, meant:
value = 0

 
 

Drupal is a registered trademark of Dries Buytaert.