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

Fixed IPB undefined index 'msg_id'

Discussion in 'Resolved Bug Reports' started by Jake Bunce, Aug 11, 2013.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff 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:

    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:

    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
    				);
    
     
  2. Kier

    Kier XenForo Developer Staff Member

    Fixed
     

Share This Page