I'm not sure if this is related to http://drupal.org/node/696500 or not so I'm posting it as a new issue just in case. I have Plus 1 enabled for anonymous users of my site. I also have page caching enabled. After seeing the volume of voting drop considerably recently I started doing a bit of testing and realized that anonymous visitors couldn't vote. When they clicked the voting image nothing happened on the front end. I checked the dblog and found two notices corresponding to the vote attempt.

1. An access denied error.
2. A voting form error: invalid token notice.

After I flush the page cache and try to vote anonymously I am able to do so and don't see errors in the dblog. You can try this out over on http://learnbythedrop.com. Depending on when I flushed the cache the voting may or may not work for you.

Rob Safuto
Awakened Voice

CommentFileSizeAuthor
#2 plus1.anonymous-voting2.patch480 bytesnils.destoop

Comments

voxpelli’s picture

The patch in #11 in #322735: Vote link is executed by search engines partly solves this bug by changing the vote links into POST forms - it should however be modified to not add a token for anonymous users since it conflicts with caching as noted in this issue.

nils.destoop’s picture

StatusFileSize
new480 bytes

Included a patch to resolve the conflict between tokens and anonymous users when page cache is enabled.

The patch in #11 in #322735: Vote link is executed by search engines won't resolve the problem, because the token is still in page cache, even when using a POST.

voxpelli’s picture

Status: Active » Needs review

I think a combination of the two patches are needed. Any one able to review this?

nirad’s picture

subscribing. Just came across this after I decided to allow anonymous voting. I will test and report back.

mcurry’s picture

subscribing

cashwilliams’s picture

I'm using all three patches, applied in this order:

#1 from #696500: Variable misused used to store state
#11 from #322735: Vote link is executed by search engines
#3 from this issue

Everything seems to be working

nancydru’s picture

Status: Needs review » Reviewed & tested by the community
nancydru’s picture

Assigned: Unassigned » nancydru
Status: Reviewed & tested by the community » Patch (to be ported)
nancydru’s picture

Status: Patch (to be ported) » Fixed

Committed to 6.x-2.x-dev.

Status: Fixed » Closed (fixed)

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

ionmedia’s picture

how can we use plus1 with boost and memcache/authcache?

amsterdamdrupalnewbie’s picture

Version: 6.x-2.6 » 7.x-1.x-dev

This is also an issue for the 7.x version - would it be possible to port this patch to the 7.x version too?