Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Forgive me if I am posting this in the wrong place. I am having a problem with the poll module o nmy site, www.thePRguy.com. When a vote is submitted and the page refreshes with the updated poll results, a random page, usually from my Amazon.com store module, is loaded. Sometimes the results can be quite comical or embarrasing. Does this have a fix?
Comment | File | Size | Author |
---|---|---|---|
#24 | poll_block_cache-782300-24.patch | 521 bytes | mdupont |
Comments
Comment #1
venusrising CreditAttribution: venusrising commentedI too have the same issue as we just enabled polls on our site. Anonymous user permissions, checked , poll disabled/re-enabled, cache from DB flushed still not registering anonymous votes and sometimes sending to random page, in our case a view page
Comment #2
venusrising CreditAttribution: venusrising commentedI too have the same issue as we just enabled polls on our site. Anonymous user permissions, checked , poll disabled/re-enabled, cache from DB flushed still not registering anonymous votes and sometimes sending to random page, in our case a view page
Comment #3
treehacker CreditAttribution: treehacker commentedI have the same issue here. I'm using the latest poll block on the right sidebar and on the that sidebar I also have a quicktab. Maybe the problem has to do with that?!
Comment #4
mariano.barcia CreditAttribution: mariano.barcia commentedSubscribing. I'm having the same issue with anonymous visitors being redirected to random page after casting a vote in the latest poll block. It's interesing that, just like treehacker, I'm using quicktab and the "latest poll" block on a panel in home page. Sounds like a good hint for where to start looking... BTW, I'm also using boost. Any ideas?
Comment #5
ndstate CreditAttribution: ndstate commentedI am having the same issues also. I am also using Boost, quicktab (though for other content), and the latest poll block.
Any ideas on how to solve this.
Comment #6
tanhaa CreditAttribution: tanhaa commentedhas there been any fix to this issue? Or any suggestions? I'm going to assume this is related to cache. Not using Boost, but having the same issue recently with anonymous voters being sent to random pages.
It used to work fine, just started a few days ago .. not sure what may have changed. The only recent modules installed were Twitter/OAuth
The problem only occurs when using the latest poll block.
Comment #7
gdoteof CreditAttribution: gdoteof commentedalso have this problem; not limited to anonymous users though
Comment #8
brizone CreditAttribution: brizone commentedso, we basically have no functional Poll module for Drupal right now?
Comment #9
miopa CreditAttribution: miopa commentedSame issue, subscribing.
Comment #10
Ganginator CreditAttribution: Ganginator commentedI am having the same issue. I'm subscribing, but according to the posts this has been an issue for months? Will we ever get an answer?
Comment #11
venusrising CreditAttribution: venusrising commentedStill the same issue for us too
Comment #12
Rameez CreditAttribution: Rameez commentedSame issue, subscribing.
Comment #13
Rameez CreditAttribution: Rameez commentedI found alternative solution by installing ajax poll module. It will skip reloading of page and user will be on same page after voting.
Comment #14
lastnico CreditAttribution: lastnico commentedSame problem here with Drupal 6, subscribing!
http://www.forum-software.org/vote-for-best-forum-software-of-2011
Comment #15
ericpai CreditAttribution: ericpai commentedSame issue, subscribing.
Comment #16
ericpai CreditAttribution: ericpai commentedThe poll is putting an incorrect form action for the poll form.
It seems that disabling block cache fixes the issue for now.
Comment #17
jackal1234 CreditAttribution: jackal1234 commentedRespect to you. fix this problem...
Comment #18
dilanke.kumara CreditAttribution: dilanke.kumara commentedI checked this issue in my local site.But I haven't get this problem in my site.According to my knowledge this issue comes because of the permissions problem in poll module.First check the "inspect all votes" permission in poll permissions .
Comment #19
gandhiano CreditAttribution: gandhiano commentedI can confirm this issue and it is not permissions related (at least not in the way dilanke.kumara mentioned it). I will continue to work on this for a website in the next days - if someone would have a clue on where to start looking, would be a big help.
Comment #20
gandhiano CreditAttribution: gandhiano commentedBug is still existing as of current version
Comment #21
bsfajardo CreditAttribution: bsfajardo commentedI'm having the same issue. Disabling block cache solved for now!
Subscribing...
Comment #22
reload CreditAttribution: reload commentedI can confirm disabling the block cache, work around works.
Comment #23
mdupontpoll_block() doesn't define any $block['cache'] value so the default is used : BLOCK_CACHE_PER_ROLE. If the block is cached, it will be cached with $form['#action'] set to the first page it was displayed on, causing a redirect after form submission. That's why disabling block cache fixes the issue since $form['#action'] is recalculated each time.
Setting $block['#cache'] to BLOCK_CACHE_PER_ROLE|BLOCK_CACHE_PER_PAGE should fix the issue
Comment #24
mdupontPatch attached.
Comment #25
mdupontComment #26
Andreyy CreditAttribution: Andreyy commented#24: poll_block_cache-782300-24.patch queued for re-testing.