Voting Actions for Comments does not work

formicin - July 10, 2006 - 14:51
Project:Voting Actions
Version:4.7.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm using Vote UpDown, Voting Actions, Actions, Voting API modules and they work fine on nodes(promoting, unpublishing).
But I couldn't make them work on comments. I can see the widget, I can use it, my vote is cast but no action is done.
I wanted to unpublish comments when one has lower points than -10, so I set up an action like:

value type
Points

tag
empty

function
average

comparison
is less then

value
-10

Actions

action
Unpublish comment

Voting actions seems to work fine with nodes, so i think there is a bug with comments.

Any suggestions?

#1

eaton - July 10, 2006 - 14:52

I'll take a look. What versions of votingapi and voting_actions are you using?

#2

formicin - July 10, 2006 - 15:16

Voting Actions 4.7
Voting API 4.7 (I was using the CVS version, but I uninstalled it by disabling, then dropping the tables created by voting api and dropping the columns that belong to voting api. Then I uploaded the 4.7 version and enabled it)

#3

formicin - July 14, 2006 - 18:18

Is there anyone that can use voting with comments?

#4

skor - July 22, 2006 - 04:40

Works for me on a fresh 4.7.2 install with the latest version of voting api, voting actions, actions, and vote up/down.

however, I have another install (4.7beta6 I think) with some previous versions of voting api, and actions that I'm having trouble upgrading properly.

#5

skor - July 22, 2006 - 04:42

here are my settings:
value type
Points

tag
empty

function
average

comparison
is less then

value
0

Actions

action
Unpublish comment

#6

skor - July 23, 2006 - 21:01
Status:active» closed

Updated my non-working site to 4.7.2 and it seems to work. No idea why that should make a difference

#7

formicin - July 24, 2006 - 21:55
Status:closed» active

I use the latest versions, but they are updated ones. I'll try to install fresh versions of them and post a follow up.

#8

skor - August 4, 2006 - 02:44

Actually, mine is broken again. Was working for a single action to un-publish the comment per my above config. But then I added a 2nd action to try to send an email notification (triggered by the same contitions) and now neither action triggers.

#9

formicin - August 15, 2006 - 01:11

Were you able to make it work?

#10

skor - August 15, 2006 - 03:15

no, not even when I delete all the actions, and then re-implement just the un-publish action. The voting api is clearly working properly, since the score appears to update properly. Seems like the first step should be to figure out whether the voting-actions module is actually making the call to the actions module. Then we'd at least know which module to look at. Is there any better method for de-bugging than putting print-statements in the code to check which branches are being executed?

#11

formicin - August 16, 2006 - 08:42

you can use the devel module as an option, but I don't know if it can help.

#12

ksoonson - January 8, 2007 - 16:47

I experience similar issues.

Could you check http://drupal.org/node/107735 ?

I also am having trouble with automatic comment deletion.

#13

stafford - May 14, 2007 - 16:41

Hi,

Same problem here. Voting comments works fine. But the voting actions don't work. Modules: vote up/down, actions, vote actions.

Settings:

value type: Points

tag: "emtpy"

function: sum

comparsion: is less than

value: 0

We have a lot of comments with negatives, but they are still published.

Did I make a mistake?

 
 

Drupal is a registered trademark of Dries Buytaert.