Fixed  Voting in Poll Bug!


New member
This Bug was reported to me! The link to our XenForo BUGS thread is here
Mysqli statement execute error : Duplicate entry '25-1' for key 'PRIMARY'

    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    Zend_Db_Adapter_Abstract->insert() in XenForo/Model/Poll.php at line 304
    XenForo_Model_Poll->voteOnPoll() in XenForo/ControllerPublic/Thread.php at line 1019
    XenForo_ControllerPublic_Thread->actionPollVote() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /home/techforo/public_html/index.php at line 13
Your thoughts?


New member
I don't no if this is a bug for sure, but the user assured me that he only clicked once.


XenForo developer
Staff member
There's a race condition here. I've done what I can to prevent the error.