Not a bug Error by adding an Administrator

Tealk

Well-known member
Code:
Fehlerinformation
Mysqli statement execute error : Duplicate entry '388' for key 'PRIMARY' - library/Zend/Db/Statement/Mysqli.php:214

Stapelverfolgung
#0 /home/www/anzahcraft.de/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/www/anzahcraft.de/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/www/anzahcraft.de/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `xf...', Array)
#3 /home/www/anzahcraft.de/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('xf_admin', Array)
#4 /home/www/anzahcraft.de/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
#5 /home/www/anzahcraft.de/library/XenForo/DataWriter.php(1419): XenForo_DataWriter->_save()
#6 /home/www/anzahcraft.de/library/XenForo/ControllerAdmin/Admin.php(133): XenForo_DataWriter->save()
#7 /home/www/anzahcraft.de/library/XenForo/FrontController.php(351): XenForo_ControllerAdmin_Admin->actionSave()
#8 /home/www/anzahcraft.de/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/www/anzahcraft.de/admin.php(13): XenForo_FrontController->run()
#10 {main}

Benötigter Status
Array
(
    [url] => https://anzahcraft.de/admin.php?admins/save
    [_GET] => Array
        (
            [admins/save] => 
        )

    [_POST] => Array
        (
            [visitor_password] => ********
            [username] => Kandar Mar
            [permissions] => Array
                (
                    [0] => warning
                )

            [_xfToken] => ********
        )

)
 
It looks like you have data in the xf_admin table that shouldn't be there. This would likely indicate some sort of manual manipulation (or an add-on that caused some sort of interference). I think you would manually need to remove that record (if you can't remove the admin via the control panel) before re-adding.

Alternatively, it could have been a race condition if somehow the submission happened multiple times.
 
Back
Top Bottom