• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Running spam cleaner twice concurrently can cause errors

md_5

Well-known member
#1
Code:
#0 /srv/spigot-forums/deploy/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /srv/spigot-forums/deploy/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /srv/spigot-forums/deploy/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /srv/spigot-forums/deploy/library/XenForo/DataWriter.php(1624): Zend_Db_Adapter_Abstract->insert('xf_user_ban', Array)
#4 /srv/spigot-forums/deploy/library/XenForo/DataWriter.php(1613): XenForo_DataWriter->_insert()
#5 /srv/spigot-forums/deploy/library/XenForo/DataWriter.php(1405): XenForo_DataWriter->_save()
#6 /srv/spigot-forums/deploy/library/XenForo/Model/User.php(2612): XenForo_DataWriter->save()
#7 /srv/spigot-forums/deploy/library/XenForo/Model/SpamCleaner.php(159): XenForo_Model_User->ban(44942, 0, 'Spam', false, NULL)
#8 /srv/spigot-forums/deploy/library/XenForo/Model/SpamCleaner.php(27): XenForo_Model_SpamCleaner->_banUser(Array, Array, NULL)
#9 /srv/spigot-forums/deploy/library/XenForo/ControllerPublic/SpamCleaner.php(53): XenForo_Model_SpamCleaner->cleanUp(Array, Array, Array, NULL)
#10 /srv/spigot-forums/deploy/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_SpamCleaner->actionIndex()
#11 /srv/spigot-forums/deploy/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /srv/spigot-forums/deploy/index.php(13): XenForo_FrontController->run()
#13 {main}
Basically if the pending spam clean is halfway done (I don't know, something causes it to stall client/server side, maybe slow StopForumSpam submission), running it again causes the above error.