Fixed Duplicate key error on invite?

janslu

Active Member
I just found this in my admin console - seems like there was a duplicate key on invitation generation? I'm sorry but I have no idea if this is just a single occurrence or an indication of a bug somewhere. So I'm posting this for you to take a look and decide whether it is something you should take care of, or just a single slip up somewhere...

Code:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry '1065-165838' for key 'PRIMARY' - library/Zend/Db/Statement/Mysqli.php:214
Generated By: rozmaryn, Wczoraj o 14:05
Stack Trace
#0 /var/www/hosts/www.babyboom.pl/forum/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/hosts/www.babyboom.pl/forum/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/hosts/www.babyboom.pl/forum/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('xf_team_member', Array)
#4 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
#5 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1419): XenForo_DataWriter->_save()
#6 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Member.php(468): XenForo_DataWriter->save()
#7 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/ControllerPublic/Member.php(306): Nobita_Teams_Model_Member->insertMember(165838, 1065, 'member', 'request', Array)
#8 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(351): Nobita_Teams_ControllerPublic_Member->actionInvite()
#9 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/hosts/www.babyboom.pl/forum/index.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
  ["url"] => string(50) "https://www.babyboom.pl/forum/grupy/members/invite"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["username"] => string(7) "emma248"
    ["_xfToken"] => string(8) "********"
    ["team_id"] => string(4) "1065"
    ["_xfRequestUri"] => string(50) "/forum/grupy/lutowka-2017.1065/members?user=monksu"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Does it happen all time? Or just single error. Because i have check the existing before to do add new one.
 
Oh. Look like it is insert in same time. It is lowest happen, but i will try if i can help something.
 
Back
Top