Fixed strange Error when moving threads!

eriche

Active Member
Yesterday I was moving some threads in my Forum.
It was NOT one of the linked Nobita Groups Forums - it was just a Forum!

It seems for me, that a hook in the Model\Team.php causes this problems

Code:
Server Error Log
Error Info
 
ErrorException: Undefined index: privacy_state - library\Nobita\Teams\Model\Team.php:1392
Generated By: xxx, Yesterday at 7:47 PM
 
Stack Trace
 
#0 xxx\xenforum\library\Nobita\Teams\Model\Team.php(1392): XenForo_Application::handlePhpError(8, 'Undefined index...', 'H:\\root\\home\\er...', 1392, Array)
#1 xxx\xenforum\library\Nobita\Teams\Model\Team.php(1015): Nobita_Teams_Model_Team->isSecret(Array)
#2 xxx\xenforum\library\Nobita\Teams\Model\Team.php(1033): Nobita_Teams_Model_Team->canViewTeam(Array, Array, '', Array)
#3 xxx\xenforum\library\Nobita\Teams\Model\Thread.php(13): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, '', Array)
#4 xxx\xenforum\library\Nobita\Teams\XenForo\DataWriter\Discussion\Thread.php(25): Nobita_Teams_Model_Thread->canAddThread(Array, Array, 68)
#5 xxx\xenforum\library\XenForo\DataWriter\Discussion.php(308): Nobita_Teams_XenForo_DataWriter_Discussion_Thread->_discussionPreSave()
#6 xxx\xenforum\library\XenForo\DataWriter.php(1446): XenForo_DataWriter_Discussion->_preSave()
#7 xxx\xenforum\library\XenForo\DataWriter.php(1385): XenForo_DataWriter->preSave()
#8 xxx\xenforum\library\XenForo\Model\ThreadRedirect.php(104): XenForo_DataWriter->save()
#9 xxx\xenforum\library\Waindigo\CustomFields\Extend\XenForo\Model\ThreadRedirect.php(18): XenForo_Model_ThreadRedirect->createRedirectThread('threads/farming...', Array, 'thread-44-68-', 1424976428)
#10 xxx\xenforum\library\XenForo\Model\InlineMod\Thread.php(729): Waindigo_CustomFields_Extend_XenForo_Model_ThreadRedirect->createRedirectThread('threads/farming...', Array, 'thread-44-68-', 1424976428)
#11 xxx\xenforum\library\XenForo\ControllerPublic\InlineMod\Thread.php(215): XenForo_Model_InlineMod_Thread->moveThreads(Array, 103, Array, NULL)
#12 xxx\xenforum\library\XenForo\FrontController.php(347): XenForo_ControllerPublic_InlineMod_Thread->actionMove()
#13 xxx\xenforum\library\XenForo\FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#14 xxx\xenforum\index.php(13): XenForo_FrontController->run()
#15 {main}
 
Request State
 
array(3) {
  ["url"] => string(51) "http://xxx/inline-mod/thread/move"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(12) {
    ["node_id"] => string(3) "103"
    ["create_redirect"] => string(8) "expiring"
    ["redirect_ttl_value"] => string(1) "1"
    ["redirect_ttl_unit"] => string(4) "days"
    ["send_alert"] => string(1) "1"
    ["send_starter_alert"] => string(1) "1"
    ["starter_alert_reason"] => string(35) "this thread was moved"
    ["save"] => string(12) "Move Threads"
    ["threads"] => array(1) {
      [0] => string(2) "44"
    }
    ["_xfConfirm"] => string(1) "1"
    ["redirect"] => string(71) "http://xxx/forums/attacks-strategy.68/"
    ["_xfToken"] => string(8) "********"
  }
}

a second error I get like this
Code:
ErrorException: Undefined index: user_id - library\Nobita\Teams\Model\Team.php:978
Generated By: xxx, Yesterday at 7:47 PM

and
Code:
ErrorException: Undefined index: team_state - library\Nobita\Teams\Model\Team.php:1382
Generated By: xxx, Yesterday at 7:47 PM

So whats going wrong here?
When moving, I said there should stay 1 day a link to the post at the old Location.
Only that you can try 1:1 what I did at your Forum.

Erich
 
Last edited:
Its weird. I have try to move some threads and have no errors. Just do here as well :/
 
Back
Top