Anonymous users can rate only once

sotiris - June 3, 2008 - 11:00
Project:Fivestar
Version:6.x-1.12
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Maybe i'm missing something but as i can see anonymous users can vote only once...
when i vote as an anonymous user, system is recording my vote, but if clean cookies and change my ip and then trying to vote again to the same node, system doesn't recording my vote...

#1

lslinnet - June 9, 2008 - 13:47

Got the same problem on one of my sites.

Just subscribing to see if anyone has an answer/solution to this.

#2

lordnacho - June 19, 2008 - 21:10

Did you change the Anonymous vote interval in the Fivestar settings?

#3

sotiris - June 21, 2008 - 16:55

Hello lordnacho, can you please be more specific, under admin/settings/fivestar i can see only style related settings (such as widget display, color scheme). If you mean the settings under admin/content/types and then inside story neither there i found the interval that you mentioned.

I found the Anonymous vote rollover under admin/settings/votingapi and changed it to "immediately" but it didn't work again...
Anonymous can rate only once...

#4

SnapMaster - June 22, 2008 - 15:08

Me too need solution of this question.

#5

alliax - June 24, 2008 - 23:59

subscribing, sorry for the false hope.

#6

lslinnet - July 2, 2008 - 07:16

Subscribing,

I'm having the same problem, Anonymous voting is enabled but only allows 1 vote per 15min from an anonymous users.
Have changed Voting API -> Anonymous vote rollover: -> Immediately
But doesn't have any effect.

#7

quicksketch - July 2, 2008 - 19:54
Category:support request» bug report
Status:active» patch (code needs review)

Looks like a bug that is affecting the Drupal 6 version only. Fivestar isn't properly using VotingAPI (or you could say, VotingAPI isn't properly understanding Fivestar) when it comes to casting anonymous votes. After talking with Eaton we decided best to fix it in Fivestar, where the IP address of anonymous users needs to be collected *before* casting new votes (rather than let VotingAPI find the IP and add it automatically during the vote).

Here's a patch that should correct the problem. Please test!

AttachmentSize
fivestar_anon_ip.patch1.17 KB

#8

SnapMaster - July 3, 2008 - 13:26

#9

sotiris - July 4, 2008 - 06:27

After patching the fivestar.module, got the folowing warning:

* warning: include_once(./sites/all/modules/fivestar/fivestar.module) [function.include-once]: failed to open stream: Permission denied in \main\includes\bootstrap.inc on line 558.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/fivestar/fivestar.module' for inclusion (include_path='.;C:\php5\pear') in \main\includes\bootstrap.inc on line 558.

#10

lev1108 - July 7, 2008 - 08:09

works for me, thanks

#11

BrightLoudNoise - July 17, 2008 - 21:49
Status:patch (code needs review)» patch (reviewed & tested by the community)

Patch applies successfully, and anonymous vote rollover now appears to be working correctly.

#12

BrightLoudNoise - July 18, 2008 - 14:03
Status:patch (reviewed & tested by the community)» patch (code needs review)

@sotiris: Can you double check your permissions on fivestar.module, it sounds like you might have clobbered them accidentally.

#13

quicksketch - July 23, 2008 - 15:59
Status:patch (code needs review)» fixed

I committed the patch in #7. Thanks for testing everyone.

#14

sotiris - July 31, 2008 - 11:49
Status:fixed» patch (code needs work)

@ BrightLoudNoise I checked permissions but everything seems fine to me.
After i installed the patch, fivestar rating doesn't apear at all.

After a while...

So finally i got it work.
I was trying to patch it with cygwin, but something was going wrong. When i changed manually the code with an editor, fivestar worked and since then vote recording for anonymous users is working properly.

Thanks a lot!

#15

freefontaine - July 30, 2008 - 20:55

Patch worked for me! Thanks!

#16

sotiris - July 31, 2008 - 11:50
Status:patch (code needs work)» patch (reviewed & tested by the community)

#17

quicksketch - July 31, 2008 - 18:04
Status:patch (reviewed & tested by the community)» fixed

I'll try to get a 1.13 version out after the multiaxis patch gets in.

#18

Anonymous (not verified) - August 14, 2008 - 18:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.