Bug Server error

EazyEazy

Member
Joined
Mar 6, 2018
Messages
53
As per the title. This keeps appearing in my error log:

Code:
    ErrorException: [E_NOTICE] Undefined offset: 16 src/addons/XFA/Tournament/Entity/Bracket.php:178

    Generated by: ******* Apr 19, 2019 at 8:32 PM

Stack trace

#0 src/addons/XFA/Tournament/Entity/Bracket.php(178): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/absolute/...', 178, Array)
#1 src/addons/XFA/Tournament/Entity/Tournament.php(622): XFA\Tournament\Entity\Bracket->findPendingMatchInfoForParticipantInSingleEliminationBracket(Object(XFA\Tournament\Entity\Participant), 0)
#2 src/addons/XFA/Tournament/Pub/Controller/Tournament.php(196): XFA\Tournament\Entity\Tournament->findPendingMatchesInfoForParticipant(Object(XFA\Tournament\Entity\Participant), Object(XF\Mvc\Entity\ArrayCollection))
#3 src/XF/Mvc/Dispatcher.php(321): XFA\Tournament\Pub\Controller\Tournament->actionView(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XFA\\Tournament\\...', 'View', Object(XF\Mvc\RouteMatch), Object(XFA\Tournament\Pub\Controller\Tournament), Object(XF\Mvc\Reply\Reroute))
#5 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\Tournament\Pub\Controller\Tournament), Object(XF\Mvc\Reply\Reroute))
#6 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#8 src/XF.php(390): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state

array(4) {
  ["url"] => string(66) "/community/index.php?tournaments/fantasy-league-cup-season-26.209/"
  ["referrer"] => string(48) "https://**************/community/index.php"
  ["_GET"] => array(1) {
    ["tournaments/fantasy-league-cup-season-26_209/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
This would mean an opponent is missing that's odd.
I am wondering, does that tournament has BYE ?
 

EazyEazy

Member
Joined
Mar 6, 2018
Messages
53
This would mean an opponent is missing that's odd.
I am wondering, does that tournament has BYE ?
No its a 32 man tournament. One of my admins set it up but one thing that sticks out now you say that. Its a 32 man single elimination. I could be wrong but i think the admin set it up as 64 and is using 32. See screenshot

error.png
 

EazyEazy

Member
Joined
Mar 6, 2018
Messages
53
Ill update this. Had another error tonight in a tournament I set up. It was set up correctly.

Code:
    ErrorException: [E_NOTICE] Undefined offset: 14 src/addons/XFA/Tournament/Entity/Bracket.php:178

    Generated by: ***** Apr 20, 2019 at 11:02 PM

Stack trace

#0 src/addons/XFA/Tournament/Entity/Bracket.php(178): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/absolute/...', 178, Array)
#1 src/addons/XFA/Tournament/Entity/Tournament.php(622): XFA\Tournament\Entity\Bracket->findPendingMatchInfoForParticipantInSingleEliminationBracket(Object(XFA\Tournament\Entity\Participant), 0)
#2 src/addons/XFA/Tournament/Pub/Controller/Tournament.php(196): XFA\Tournament\Entity\Tournament->findPendingMatchesInfoForParticipant(Object(XFA\Tournament\Entity\Participant), Object(XF\Mvc\Entity\ArrayCollection))
#3 src/XF/Mvc/Dispatcher.php(321): XFA\Tournament\Pub\Controller\Tournament->actionView(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XFA\\Tournament\\...', 'View', Object(XF\Mvc\RouteMatch), Object(XFA\Tournament\Pub\Controller\Tournament), Object(XF\Mvc\Reply\Reroute))
#5 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFA\Tournament\Pub\Controller\Tournament), Object(XF\Mvc\Reply\Reroute))
#6 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#8 src/XF.php(390): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state

array(4) {
  ["url"] => string(67) "/community/index.php?tournaments/saturday-tournament-scum-bags.225/"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["tournaments/saturday-tournament-scum-bags_225/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Please send me a link with a test account.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
I would need to know for which user the error appeared in which tournament and at which match he was