Fixed 2.5.8 errors in admin

janslu

Active Member
Got two error reports in my admin panel after upgrading to 2.5.8:
Code:
Error Info
ErrorException: Undefined index: permissions - library/Nobita/Teams/Model/Team.php:1259
Generated By: Franca, 3 minut temu
Stack Trace
#0 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1259): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/hosts/...', 1259, Array)
#1 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1225): Nobita_Teams_Model_Team->canViewTeamSecret(Array, Array, NULL, Array)
#2 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/Model/Forum.php(108): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#3 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/Thread.php(857): Nobita_Teams_XenForo_Model_Forum->canViewForum(Array, NULL, Array, Array)
#4 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/ThreadWatch.php(226): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#5 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#6 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/DataWriter/DiscussionMessage/Post.php(34): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#7 /var/www/hosts/www.babyboom.pl/forum/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): Nobita_Teams_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1437): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/ControllerPublic/Thread.php(578): XenForo_DataWriter->save()
#10 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Thread->actionAddReply()
#11 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#12 /var/www/hosts/www.babyboom.pl/forum/index.php(13): XenForo_FrontController->run()
#13 {main}
Request State
array(3) {
  ["url"] => string(64) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(102) "<p>Happy a może piersi są tak nabzmiale przez nawał, że młody ma problem ze złapaniem?&nbsp;</p>"
    ["_xfRelativeResolver"] => string(63) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/page-992"
    ["attachment_hash"] => string(32) "c4c433dbf13087f51807827308762d63"
    ["last_date"] => string(10) "1465122386"
    ["last_known_date"] => string(10) "1465122386"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(40) "/forum/temat/watek-glowny.78590/page-992"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
and
Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, null given, called in /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php on line 1259 and defined - library/XenForo/Permission.php:27
Generated By: Franca, 5 minut temu
Stack Trace
#0 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Permission.php(27): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/hosts/...', 27, Array)
#1 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1259): XenForo_Permission::hasPermission(NULL, 'Teams', 'viewSecret')
#2 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1225): Nobita_Teams_Model_Team->canViewTeamSecret(Array, Array, NULL, Array)
#3 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/Model/Forum.php(108): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#4 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/Thread.php(857): Nobita_Teams_XenForo_Model_Forum->canViewForum(Array, NULL, Array, Array)
#5 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/ThreadWatch.php(226): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#6 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#7 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/DataWriter/DiscussionMessage/Post.php(34): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /var/www/hosts/www.babyboom.pl/forum/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): Nobita_Teams_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1437): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#10 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/ControllerPublic/Thread.php(578): XenForo_DataWriter->save()
#11 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Thread->actionAddReply()
#12 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#13 /var/www/hosts/www.babyboom.pl/forum/index.php(13): XenForo_FrontController->run()
#14 {main}
Request State
array(3) {
  ["url"] => string(64) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(102) "<p>Happy a może piersi są tak nabzmiale przez nawał, że młody ma problem ze złapaniem?&nbsp;</p>"
    ["_xfRelativeResolver"] => string(63) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/page-992"
    ["attachment_hash"] => string(32) "c4c433dbf13087f51807827308762d63"
    ["last_date"] => string(10) "1465122386"
    ["last_known_date"] => string(10) "1465122386"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(40) "/forum/temat/watek-glowny.78590/page-992"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I don't use FTP to upload, I have the files unpacked on my server and I just overwrite files in an instant. Thought the problem would manifest if uploading files through ftp only. Is there a way to fix this?
 
Ah okay, that's the same. But you should have deactivated the add-on before you replaced the files.

I would deactivate the add-on now, then replace the files again and then run the install script xml again and then activate the add-on again
 
I have made a proper upgrade but I still get an error - this seems to be connected to tapatalk plugin:

Code:
Server Error Log
Error Info
ErrorException: Undefined index: permissions - library/Nobita/Teams/Model/Team.php:1239
Generated By: ruda1991, Przed chwilą
Stack Trace
#0 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1239): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/hosts/...', 1239, Array)
#1 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1223): Nobita_Teams_Model_Team->canViewTeamClosedAndContainer(Array, Array, NULL, Array)
#2 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/Model/Forum.php(108): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#3 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/Thread.php(857): Nobita_Teams_XenForo_Model_Forum->canViewForum(Array, NULL, Array, Array)
#4 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/ThreadWatch.php(226): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#5 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#6 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/DataWriter/DiscussionMessage/Post.php(34): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#7 /var/www/hosts/www.babyboom.pl/forum/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): Nobita_Teams_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1437): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /var/www/hosts/www.babyboom.pl/forum/tptlk/mbqClass/lib/write/MbqWrEtForumPost.php(99): XenForo_DataWriter->save()
#10 /var/www/hosts/www.babyboom.pl/forum/tptlk/mbqFrame/mbqBaseAction/MbqBaseActReplyPost.php(71): MbqWrEtForumPost->addMbqEtForumPost(Object(MbqEtForumPost))
#11 /var/www/hosts/www.babyboom.pl/forum/tptlk/mbqAction/MbqActReplyPost.php(20): MbqBaseActReplyPost->actionImplement(Object(stdClass))
#12 /var/www/hosts/www.babyboom.pl/forum/tptlk/mobiquoCommon.php(101): MbqActReplyPost->actionImplement(Object(stdClass))
#13 /var/www/hosts/www.babyboom.pl/forum/tptlk/mobiquo.php(36): MbqMain::action()
#14 {main}
Request State
array(3) {
  ["url"] => string(41) "https://www.babyboom.pl/forum/mobiquo.php"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(1) {
    ["TapatalkParamsLog"] => array(8) {
      [0] => string(4) "1137"
      [1] => string(5) "79230"
      [2] => string(0) ""
      [3] => string(241) "Meg nie kazdy chce kupic uzywany. Ja jestem zdania ze jak cos nie jest konieczne ni mozna dokupic w 5 minut to po co kupowac na zapas



Napisane na HUAWEI SCL-L01 w aplikacji [URL='http://r.tapatalk.com/byo?rid=81627']Forum BabyBoom[/URL]

"
      [4] => array(0) {
      }
      [5] => string(0) ""
      [6] => bool(true)
      ["useragent"] => string(114) "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 BYO-4/5.0.34"
    }
  }
}

and another one:
Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, null given, called in /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php on line 1259 and defined - library/XenForo/Permission.php:27
Generated By: lui123, 2 minut temu
Stack Trace
#0 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Permission.php(27): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/hosts/...', 27, Array)
#1 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1259): XenForo_Permission::hasPermission(NULL, 'Teams', 'viewSecret')
#2 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/Model/Team.php(1225): Nobita_Teams_Model_Team->canViewTeamSecret(Array, Array, NULL, Array)
#3 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/Model/Forum.php(108): Nobita_Teams_Model_Team->canViewTeamAndContainer(Array, Array, NULL, Array)
#4 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/Thread.php(857): Nobita_Teams_XenForo_Model_Forum->canViewForum(Array, NULL, Array, Array)
#5 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/Model/ThreadWatch.php(226): XenForo_Model_Thread->canViewThreadAndContainer(Array, Array, NULL, Array, Array)
#6 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter/DiscussionMessage/Post.php(164): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#7 /var/www/hosts/www.babyboom.pl/forum/library/Nobita/Teams/XenForo/DataWriter/DiscussionMessage/Post.php(34): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /var/www/hosts/www.babyboom.pl/forum/library/WidgetFramework/XenForo/DataWriter/DiscussionMessage/Post.php(7): Nobita_Teams_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#9 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/DataWriter.php(1437): WidgetFramework_XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#10 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/ControllerPublic/Thread.php(578): XenForo_DataWriter->save()
#11 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Thread->actionAddReply()
#12 /var/www/hosts/www.babyboom.pl/forum/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#13 /var/www/hosts/www.babyboom.pl/forum/index.php(13): XenForo_FrontController->run()
#14 {main}
Request State
array(3) {
  ["url"] => string(64) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/add-reply"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(1158) "<p>Hejo!</p><p>U nas chyba dobre. "Chyba", &nbsp;bo wszystko jest nowe a my wciąż nie zawsze wiemy co robić, ale ogólnie raczej nie mamy problemów. Ja karmię cały czas piersią, cały czas mam watpiliwośći czy leci dość i czy mały sie dość &nbsp;najada, no ale skoro zmieniamy pieluszki to chyba ok, co? Ogólnie, w szpitalu mały stracił 220g,podobno w normie. Mały trochę ulewa i wtedy się denerwujemy trochę - on i ja bo nie umiem za bardzo jeszcze nosić go na barku.</p><p>Jeśli chodzi o poród, to u mnie jednak zestaw: "spacer, schody, mąż" pomógł ;) Byliśmy dość długo w domu i dopiero jak skurcze były częśćiej niż 5 minut,to pojechaliśmy. W szpitalu okazało się, że rozwarcie już 5-6 cm:)</p><p><b>Elianna</b> - nie martw się na zapas!:) Jestes w szpitalu a oni wiedza co robić. A wagą się nie przejmuj wcale! U mnie miało być 2600g (i wtedy sie martwilam, bo wg tych obliczen maly przybral 100g w dwa tygodnie), tuż przed porodem przu usg wyszło, że ma 3400 g ( i wtedy się martwiłam, że takiego dużego nie urodzę), a ostatecznie miał 3100:) Także jak widzisz, błedy pomiaru dość duże!</p>"
    ["_xfRelativeResolver"] => string(63) "https://www.babyboom.pl/forum/temat/watek-glowny.78590/page-995"
    ["attachment_hash"] => string(32) "0509860fe5acd39179d78a873ce327b4"
    ["last_date"] => string(10) "1465138369"
    ["last_known_date"] => string(10) "1465207588"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(40) "/forum/temat/watek-glowny.78590/page-995"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
I know about tapatalk being limited to the core functionality. But this error didn't pop up before the upgrade to 2.5.8 and I wonder if it may be in any way related to 2.5.8 changes...
 
Back
Top