Fixed Team thread error

sanmitsu

Member
After the last update appeared a bug .
If thread created, the user - a team member with ID 1 (!!!Only id 1 team), in any forum, then new thread, becomes the team thread (logo team in header, tabs team ).
When you reply in this thread there is an errors:
Code:
ErrorException: Undefined index: permissions - library/Nobita/Teams/Model/Team.php:908
Generated By: SaSHoK76, Yesterday at 20:40
Stack Trace
#0 /my directory/library/Nobita/Teams/Model/Team.php(908): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/sanmit...', 908, Array)
#1 /my directory/library/Nobita/Teams/Model/Team.php(956): Nobita_Teams_Model_Team->canViewTeam(Array, Array, NULL, Array)
#2 /my directory/library/Nobita/Teams/XenForo/Model/Thread.php(76): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#3 /my directory/library/XenForo/Model/Thread.php(849): Nobita_Teams_XenForo_Model_Thread->canViewThread(Array, Array, NULL, Array, Array)
#4 /my directory/library/XenForo/Model/ThreadWatch.php(225): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#5 /my directory/library/BBM/Protection/Model/ThreadWatch.php(16): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#6 /my directory/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): BBM_Protection_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#7 /my directory/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /my directory/library/Tinhte/XenTag/XenForo/DataWriter/DiscussionMessage/Post.php(113): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /my directory/library/XenForo/DataWriter.php(1423): Tinhte_XenTag_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#10 /my directory/library/XenForo/ControllerPublic/Thread.php(555): XenForo_DataWriter->save()
#11 /my directory/library/Waindigo/Trophies/Extend/XenForo/ControllerPublic/Thread.php(34): XenForo_ControllerPublic_Thread->actionAddReply()
#12 /my directory/library/Nobita/PostStaff/XenForo/ControllerPublic/Thread.php(13): Waindigo_Trophies_Extend_XenForo_ControllerPublic_Thread->actionAddReply()
#13 /my directory/library/VfcodersHH/ControllerPublic/Thread.php(35): Nobita\PostStaff\XenForo\ControllerPublic\Thread->actionAddReply()
#14 /my directory/library/XenForo/FrontController.php(347): VfcodersHH_ControllerPublic_Thread->actionAddReply()
#15 /my directory/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#16 /my directory/index.php(13): XenForo_FrontController->run()
#17 {main}
Request State
array(3) {
  ["url"] => string(59) "http://_______/threads/skidka-76-payday-2.1684/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(185) "<p>Для России 124 рубля, купил, думаю прикольно будет побегать в ожидании BFH, вот только время бы найти.</p>"
    ["_xfRelativeResolver"] => string(50) "http://______/threads/skidka-76-payday-2.1684/"
    ["attachment_hash"] => string(32) "3bccd2067db4298692fa4e8ecacd56ad"
    ["last_date"] => string(10) "1414166386"
    ["last_known_date"] => string(10) "1414166386"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(33) "/threads/skidka-76-payday-2.1684/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
Error Info
ErrorException: Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, null given, called in /my directory/library/Nobita/Teams/Model/Team.php on line 908 and defined - library/XenForo/Permission.php:27
Generated By: SaSHoK76, Yesterday at 20:40
Stack Trace
#0 /my directory/library/XenForo/Permission.php(27): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/sanmit...', 27, Array)
#1 /my directory/library/Nobita/Teams/Model/Team.php(908): XenForo_Permission::hasPermission(NULL, 'Teams', 'view')
#2 /my directory/library/Nobita/Teams/Model/Team.php(956): Nobita_Teams_Model_Team->canViewTeam(Array, Array, NULL, Array)
#3 /my directory/library/Nobita/Teams/XenForo/Model/Thread.php(76): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#4 /my directory/library/XenForo/Model/Thread.php(849): Nobita_Teams_XenForo_Model_Thread->canViewThread(Array, Array, NULL, Array, Array)
#5 /my directory/library/XenForo/Model/ThreadWatch.php(225): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#6 /my directory/library/BBM/Protection/Model/ThreadWatch.php(16): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#7 /my directory/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): BBM_Protection_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#8 /my directory/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /my directory/library/Tinhte/XenTag/XenForo/DataWriter/DiscussionMessage/Post.php(113): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#10 /my directory/library/XenForo/DataWriter.php(1423): Tinhte_XenTag_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#11 /my directory/library/XenForo/ControllerPublic/Thread.php(555): XenForo_DataWriter->save()
#12 /my directory/library/Waindigo/Trophies/Extend/XenForo/ControllerPublic/Thread.php(34): XenForo_ControllerPublic_Thread->actionAddReply()
#13 /my directory/library/Nobita/PostStaff/XenForo/ControllerPublic/Thread.php(13): Waindigo_Trophies_Extend_XenForo_ControllerPublic_Thread->actionAddReply()
#14 /my directory/library/VfcodersHH/ControllerPublic/Thread.php(35): Nobita\PostStaff\XenForo\ControllerPublic\Thread->actionAddReply()
#15 /my directory/library/XenForo/FrontController.php(347): VfcodersHH_ControllerPublic_Thread->actionAddReply()
#16 /my directory/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#17 /my directory/index.php(13): XenForo_FrontController->run()
#18 {main}
Request State
array(3) {
  ["url"] => string(59) "http://______/threads/skidka-76-payday-2.1684/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(185) "<p>Для России 124 рубля, купил, думаю прикольно будет побегать в ожидании BFH, вот только время бы найти.</p>"
    ["_xfRelativeResolver"] => string(50) "http://______/threads/skidka-76-payday-2.1684/"
    ["attachment_hash"] => string(32) "3bccd2067db4298692fa4e8ecacd56ad"
    ["last_date"] => string(10) "1414166386"
    ["last_known_date"] => string(10) "1414166386"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(33) "/threads/skidka-76-payday-2.1684/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
Back
Top