What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Fixed Error when generating matches

EazyEazy

Member
This error occurs when generating matches for a round robin tournament.


ErrorException
: [E_WARNING] Invalid argument supplied for foreach() in src/addons/XFA/Tournament/Pub/Controller/Tournament.php at line 944
  1. XF::handlePhpError() in src/addons/XFA/Tournament/Pub/Controller/Tournament.php at line 944
  2. XFA\Tournament\Pub\Controller\Tournament->actionGenerateMatches() in src/XF/Mvc/Dispatcher.php at line 249
  3. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  4. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  5. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
  6. XF\App->run() in src/XF.php at line 328
  7. XF::runApp() in index.php at line 13

Server log

  • ErrorException: [E_WARNING] Invalid argument supplied for foreach()
  • src/addons/XFA/Tournament/Pub/Controller/Tournament.php:944

Stack trace
#0 src/addons/XFA/Tournament/Pub/Controller/Tournament.php(944): XF::handlePhpError(2, '[E_WARNING] Inv...', '/home/absolute/...', 944, Array)
#1 src/XF/Mvc/Dispatcher.php(249): XFA\Tournament\Pub\Controller\Tournament->actionGenerateMatches(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XFA\\Tournament:...', 'GenerateMatches', 'html', Object(XF\Mvc\ParameterBag), 'xfa_tourn', Object(XFA\Tournament\Pub\Controller\Tournament), NULL)
#3 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#5 src/XF.php(328): XF\App->run()
#6 index.php(13): XF::runApp('XF\\Pub\\App')
#7 {main}

array(4) {
["url"] => string(63) "/*********/index.php?tournaments/league-test.2/generate-matches"
["referrer"] => string(90) "http://*****************y/index.php?tournaments/league-test.2/generate-matches"
["_GET"] => array(1) {
["tournaments/league-test_2/generate-matches"] => string(0) ""
}
["_POST"] => array(1) {
["_xfToken"] => string(8) "********"
}
}
 
You had users registered ?

I never experienced that issue and can't reproduce.

I may need to access your forum with the capability to generate the match to reproduce.
 
You had users registered ?

I never experienced that issue and can't reproduce.

I may need to access your forum with the capability to generate the match to reproduce.

Yes I had 4 in the league table. I will send you admin access via PM so you can take a look.
 
I think this bug was in fact related with the other bracket not loading issue.

Bracket wasn't there when you got that error right ?
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart