Stop Joomla polls giving 'invalid token' when voting
I am a fool, it's official. I published a poll on GoldFigure asking What online eCommerce solutions do Kashflow users use? which generated a lot of interest very quickly via my Twitter account. Dozens of users visited the poll within a couple of minutes but only one person voted. Strange.
It turns out that using the latest Joomla!1.5 (build 1.5.14) and the standard Joomla polls when one person voted, the next voter would simple see:
Invalid token
and their vote wouldn't be cast. I should have tested this but in the interests of a realistic poll I didn't vote myself.
The solution: It was Joomla's caching at fault. We recently tuned up the website and turned on caching. Previous polls have worked but we haven't tested since the cache was enabled. Diabled it now, no major hit on performance, and the voting is working fine.
Update: Duh! Disable caching on the poll module, enable it for the rest of the site... all good!
Last Updated (Thursday, 18 June 2009 10:15)

