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

XF 1.1 Importing vB3.8 - Duplicate entry '5' for key 1 error

Discussion in 'Installation, Upgrade, and Import Support' started by steven s, Jan 30, 2012.

  1. steven s

    steven s Well-Known Member

    I tried to import my vB3.8 forum into v1.1.1 and got this error?
    Server Error
    Mysqli statement execute error : Duplicate entry '5' for key 1
    1. Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
    2. Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    3. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    4. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1591
    5. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1580
    6. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1381
    7. XenForo_DataWriter->save() in XenForo/Model/Import.php at line 580
    8. XenForo_Model_Import->_importData() in XenForo/Model/Import.php at line 618
    9. XenForo_Model_Import->importUserGroup() in XenForo/Importer/vBulletin.php at line 335
    10. XenForo_Importer_vBulletin->stepUserGroups() in XenForo/Importer/Abstract.php at line 77
    11. XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 180
    12. XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 232
    13. XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 175
    14. XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 310
    15. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    16. XenForo_FrontController->run() in /home/username/public_html/community/admin.php at line 13
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Duplicate key on xf_user_group insert.

    Is this a brand new installation of XF? Did you enable the option to preserve the source ids? That might cause this error.
     
  3. steven s

    steven s Well-Known Member

    Not new and I believe I did select to preserve source ids.
    I'll try it again noting exactly what I am checking.
     

Share This Page