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

Fixed Conversion from IP.Board?

Discussion in 'Resolved Bug Reports' started by DarkGizmo, Jul 14, 2012.

  1. DarkGizmo

    DarkGizmo Active Member

    Lately i've been having a problem with my IP.Board and i'm considering of possibly picking up another license or using my current license for my main forum. This problem happened after upgrading to IP.Board 3.3.4. When I post my post first appears underneath the quick reply box and the rest of the forum and I have to re-fresh the page in order to see the post below the rest of the posts like it should be so my question is this, if IPS can't fix this problem for me is there a way to convert from IPB 3.3.4 to Xenforo 1.1.3?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes. The IPB importer in XF works with IPB 3.3
    CyclingTribe likes this.
  3. DarkGizmo

    DarkGizmo Active Member

    It's built into Xenforo you say? or is there a separate download I'll need?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    Admin CP -> Tools -> Import External Data
  5. DarkGizmo

    DarkGizmo Active Member

    Oh how nice and simple! :)
  6. DarkGizmo

    DarkGizmo Active Member

    Hi i got this error at the threads import:
    Undefined index: post_title
    1. XenForo_Application::handlePhpError() in XenForo/Importer/IPBoard.php at line 2625
    2. XenForo_Importer_IPBoard->stepThreads() in XenForo/Importer/Abstract.php at line 77
    3. XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 180
    4. XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 232
    5. XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 175
    6. XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 310
    7. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    8. XenForo_FrontController->run() in /home/revillut/public_html/xenforo/admin.php at line 13
    Any idea why?
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Check the posts table (might include a prefix) in your IPB database. Does it include a column called "post_title"? If not then that explains the error.

    Here is a code fix you can try:


    Replace the red code:

    				foreach ($posts AS $i => $post)
    					if (!is_null($post['post_title']) && $post['post_title'] !== '' && !preg_match($threadTitleRegex, $post['post_title']))
    						$post['post'] = '[b]' . htmlspecialchars_decode($post['post_title']) . "[/b]\n\n" . ltrim($post['post']);
    					$post['post'] = $this->_parseIPBoardBbCode($post['post']);
    					if (trim($post['author_name']) === '')
    						$post['username'] = 'Guest';
    					//echo "<div>Import message $post[pid]<br /><textarea rows=4 cols=60>" . $this->_strToHex($post['post']) . "</textarea></div>";
    Like so:

    				foreach ($posts AS $i => $post)
    					if (isset($post['post_title']) && $post['post_title'] !== '' && !preg_match($threadTitleRegex, $post['post_title']))
    						$post['post'] = '[b]' . htmlspecialchars_decode($post['post_title']) . "[/b]\n\n" . ltrim($post['post']);
    					$post['post'] = $this->_parseIPBoardBbCode($post['post']);
    					if (trim($post['author_name']) === '')
    						$post['username'] = 'Guest';
    					//echo "<div>Import message $post[pid]<br /><textarea rows=4 cols=60>" . $this->_strToHex($post['post']) . "</textarea></div>";
    23323212, Neal and Adam Howard like this.
  8. DarkGizmo

    DarkGizmo Active Member

    Hmmm that seemed to have worked. Thanks!
  9. petalstats

    petalstats Member

    Thank you for this this worked for me to the only promblem i am now having is on my old forum i havedoes have 11,385 Total Posts but the new forum on xenforo only now has
  10. Chris D

    Chris D XenForo Developer Staff Member

    You should go to Admin CP > Tools > Rebuild Caches

    Then rebuild the Thread Information then rebuild the Forum Information.
  11. petalstats

    petalstats Member

    I have done that and it only uped by 1000 posts
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The Forum Statistics on the front page are updated every 10 minutes by a cron. You can force it to update by manually running the cron:

    Admin CP -> Tools -> Cron Entries -> Rebuild Board Totals Counter -> Controls: Run

    If you feel that the stats are still not correct then it may be because the thread and forum counters are not correct. You can manually rebuild those as well:

    Admin CP -> Tools -> Rebuild Caches
    > Rebuild Thread Information
    > Rebuild Forum Information

    Note that deleted and moderated posts/threads are excluded from the counts.

    If after all of this the counts are still not what you expect then I can think of three possibilities:

    1) Some of the threads / posts failed to import. When running the importer it tells you the number of successful records for each module.

    2) The counts were wrong in IPB and are correct in XF.

    3) IPB and XF count things differently. I am not very experienced with IPB so I don't know this for sure. But it's a possibility.
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The code fix I posted above has been confirmed to work for several people. It seems to be an issue with IPB 3.3. I am moving this to bug reports.
    Adam Howard likes this.
  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    An explanation was posted by AWS:

    So starting with IPB 3.3, this problem depends on if the IPB forum is a new install or was upgraded to 3.3.
  15. Alex Vojacek

    Alex Vojacek Member

    It works for me too.
  16. Mike

    Mike XenForo Developer Staff Member

    Error fixed. :)
    Slavik likes this.
  17. ArcadeTF

    ArcadeTF New Member


    Any one has faced this issue in the user import step :

    Server Error

    unserialize(): Error at offset 194 of 1164 bytes

    unserialize() in C:.....\library\XenForo\Importer\IPBoard.php at line 966
    XenForo_Importer_IPBoard->_importUser() in C:.....\library\XenForo\Importer\IPBoard.php at line 942
    XenForo_Importer_IPBoard->_importOrMergeUser() in C:.....\library\XenForo\Importer\IPBoard.php at line 731
    XenForo_Importer_IPBoard->stepUsers() in C:.....\library\XenForo\Importer\Abstract.php at line 77
    XenForo_Importer_Abstract->runStep() in C:.....\library\XenForo\ControllerAdmin\Import.php at line 180
    XenForo_ControllerAdmin_Import->_runStep() in C:.....\library\XenForo\ControllerAdmin\Import.php at line 232
    XenForo_ControllerAdmin_Import->_startStep() in C:.....\library\XenForo\ControllerAdmin\Import.php at line 175
    XenForo_ControllerAdmin_Import->actionStartStep() in C:.....\library\XenForo\FrontController.php at line 310
    XenForo_FrontController->dispatch() in C:.....\library\XenForo\FrontController.php at line 132
    XenForo_FrontController->run() in C:.....\admin.php at line 13
  18. ArcadeTF

    ArcadeTF New Member

    For information, upgraded IPB to 3.4.1
  19. Andrej

    Andrej Well-Known Member

    Please post your issue in the correct forum. :)
  20. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to associate your forum user name with your license if you wish to receive support.

Share This Page