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

Fixed Xenforo to Xenforo import Node Error

TsinJu

Well-known member
#1
Both Forums are updated to 1.2.2
If i try to import Nodes i get this Error

Code:
Server Error Log

Error Info

XenForo_Exception: Input page array does not contain node_id - library/XenForo/Model/Page.php:20

Stack Trace

#0 /var/customers/webs/user/folder/library/XenForo/Importer/XenForo.php(1370): XenForo_Model_Page->getTemplateTitle(Array)
#1 /var/customers/webs/user/folder/library/XenForo/Importer/XenForo.php(1395): XenForo_Importer_XenForo->_importNodeTree(187, Array, Array, Array)
#2 /var/customers/webs/user/folder/library/XenForo/Importer/XenForo.php(1271): XenForo_Importer_XenForo->_importNodeTree(0, Array, Array)
#3 /var/customers/webs/user/folder/library/XenForo/Importer/Abstract.php(77): XenForo_Importer_XenForo->stepNodes(0, Array)
#4 /var/customers/webs/user/folder/library/XenForo/ControllerAdmin/Import.php(195): XenForo_Importer_Abstract->runStep(Object(XenForo_ControllerAdmin_Import), Object(XenForo_ImportSession), 'nodes', 0, Array)
#5 /var/customers/webs/user/folder/library/XenForo/ControllerAdmin/Import.php(247): XenForo_ControllerAdmin_Import->_runStep(Object(XenForo_Importer_XenForo), Object(XenForo_ImportSession), 'nodes', 0, Array)
#6 /var/customers/webs/user/folder/library/XenForo/ControllerAdmin/Import.php(190): XenForo_ControllerAdmin_Import->_startStep(Object(XenForo_Importer_XenForo), Object(XenForo_ImportSession), 'nodes', Array)
#7 /var/customers/webs/user/folder/library/XenForo/FrontController.php(337): XenForo_ControllerAdmin_Import->actionStartStep()
#8 /var/customers/webs/user/folder/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /var/customers/webs/user/folder/admin.php(13): XenForo_FrontController->run()
#10 {main}

Request State

array(3) {
  ["url"] => string(54) "http://my.url.com/admin.php?import/start-step"
  ["_GET"] => array(1) {
    ["import/start-step"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["step_nodes"] => string(12) "Import Nodes"
    ["_xfToken"] => string(8) "********"
  }
}
 

Mike

XenForo developer
Staff member
#2
This line:
Code:
AND title = ?', $pageModel->getTemplateTitle($import));
Should be:
Code:
AND title = ?', $pageModel->getTemplateTitle($node));
I believe, in library/XenForo/Importer/XenForo.php.