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
Comment | File | Size | Author |
---|---|---|---|
#2 | plus1.anonymous-voting2.patch | 480 bytes | nils.destoop |
Comments
Comment #1
voxpelli CreditAttribution: voxpelli commentedThe 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.
Comment #2
nils.destoop CreditAttribution: nils.destoop commentedIncluded 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.
Comment #3
voxpelli CreditAttribution: voxpelli commentedI think a combination of the two patches are needed. Any one able to review this?
Comment #4
nirad CreditAttribution: nirad commentedsubscribing. Just came across this after I decided to allow anonymous voting. I will test and report back.
Comment #5
mcurry CreditAttribution: mcurry commentedsubscribing
Comment #6
cashwilliams CreditAttribution: cashwilliams commentedI'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
Comment #7
NancyDruComment #8
NancyDruComment #9
NancyDruCommitted to 6.x-2.x-dev.
Comment #11
ionmedia CreditAttribution: ionmedia commentedhow can we use plus1 with boost and memcache/authcache?
Comment #12
amsterdamdrupalnewbie CreditAttribution: amsterdamdrupalnewbie commentedThis is also an issue for the 7.x version - would it be possible to port this patch to the 7.x version too?