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

XF 1.4 XF1.4 import to XF1.4

Discussion in 'Troubleshooting and Problems' started by Lemminator, Jun 23, 2015.

  1. Lemminator

    Lemminator Well-Known Member


    i will import a forum from 1.4 to 1.4 but when i import elements i become some error

    Server Error
    Mysqli statement execute error : Duplicate entry '13' 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/DataWriter.php at line 1624
    XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1613
    XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1405
    XenForo_DataWriter->save() in XenForo/Model/Import.php at line 599
    XenForo_Model_Import->_importData() in XenForo/Model/Import.php at line 1266
    XenForo_Model_Import->importCategory() in XenForo/Importer/XenForo.php at line 1391
    XenForo_Importer_XenForo->_importNodeTree() in XenForo/Importer/XenForo.php at line 1406
    XenForo_Importer_XenForo->_importNodeTree() in XenForo/Importer/XenForo.php at line 1271
    XenForo_Importer_XenForo->stepNodes() in XenForo/Importer/Abstract.php at line 97
    XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 187
    XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 239
    XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 182
    XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 347
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /www/forum/admin.php at line 13
    can anybody help me ?

    kind regards

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Are you retaining IDs?

    Did the destination database have any content in it?
  3. Lemminator

    Lemminator Well-Known Member

    yes i keep the ids

    and yes . i have grate some elemtens in the Acp. its this the problem ?
    Last edited: Jun 23, 2015
  4. Mike

    Mike XenForo Developer Staff Member

    Yes. There must be absolutely no content if you are maintaining IDs.
  5. Lemminator

    Lemminator Well-Known Member

    hm ok

    so i have delete in the mysql the xf_node and xf_node_types?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    No, you can't manipulate the database like that.

    You will need to have a new installation with no content (in which case importing makes no sense as why import into an empty forum?), or don't retain IDs.
  7. Lemminator

    Lemminator Well-Known Member

    I really want to have only certain contributions from members in a new forum. That's why I made the import
  8. Brogan

    Brogan XenForo Moderator Staff Member

    What do you mean by "certain contributions from members"?
    How do you plan to limit which content from which members is imported?
  9. Lemminator

    Lemminator Well-Known Member


    i will only import my posts threads in a new forum ... but i can't choose import only the post, threads , pics etc.. from Lemminator . so i must import all files , and then deleting the others ... or is there a other way ?
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Why not just delete the content you don't want on your existing forum?
  11. Lemminator

    Lemminator Well-Known Member

    i will split something

Share This Page