Fixed IPB undefined index 'msg_id'

Jake Bunce

Well-known member
XenForo 1.2.0

Code:
Illegal string offset 'msg_id'

XenForo_Application::handlePhpError() in XenForo/Importer/IPBoard.php at line 1742
XenForo_Importer_IPBoard->stepPrivateMessages() in XenForo/Importer/Abstract.php at line 77
XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 180
XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 232
XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 175
XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 337
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/pcharms/public_html/beta2/admin.php at line 13

Code fix confirmed by customer:

library/XenForo/Importer/IPBoard.php

Replace this:

Rich (BB code):
				$messages[$message['msg_id']] = array(
					'message_date' => $post['msg_date'],
					'user_id' => $this->_mapLookUp($mapUserIds, $post['msg_author_id'], 0),
					'username' => $this->_convertToUtf8($post['msg_author_name'], true),
					'message' => $message
				);

With this:

Rich (BB code):
				$messages[$post['msg_id']] = array(
					'message_date' => $post['msg_date'],
					'user_id' => $this->_mapLookUp($mapUserIds, $post['msg_author_id'], 0),
					'username' => $this->_convertToUtf8($post['msg_author_name'], true),
					'message' => $message
				);
 
Back
Top Bottom