Corrected bugs:
- Generating a bracket for single/double eliminations tournaments with a power of 2 number of participants would lead to incorrect generated bracket with twice the number of expected matches
- Error when viewing Rules or Participants tab when tournament is finished (ie. winner nominated)
- Impossible to register on free input tournament
- Underline after roster club icon when hovering icon in participants list
New features:
- Usernames and team...
An exception occurred: Class name must be a valid object or a string in /Applications/MAMP/htdocsdev/xenforo/1/library/XenForo/Deferred/Abstract.php on line 49
XenForo_Deferred_Abstract::create() in XenForo/Model/Deferred.php at line 70
XenForo_Model_Deferred->defer() in XenForo/Application.php at line 1482
XenForo_Application::defer() in XFA/Tournament/ControllerPublic/Tournament.php at line 23
XFA_Tournament_ControllerPublic_Tournament->actionIndex() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /Applications/MAMP/htdocsdev/xenforo/1/index.php at line 13
public function execute(array $deferred, array $data, $targetRunTime, &$status)
{
$data = array_merge(array(
'position' => 0,
'batch' => 10
), $data);
$data['batch'] = max(1, $data['batch']);
$tournamentModel = XenForo_Model::create('XFA_Tournament_Model_Tournament');
$tournamentIds = $userModel->getTournamentIdsInRange($data['position'], $data['batch']);
if (sizeof($tournamentIds) == 0)
{
return true;
}
/* Get Tournaments */
$tournaments = $userModel->getTournamentsByIds($tournamentIds);
foreach($tournaments AS $tournament)
{
}
/* Prepare for new round */
$data['position'] = end($tournamentIds);
$actionPhrase = new XenForo_Phrase('rebuilding');
$typePhrase = new XenForo_Phrase('xfa_tourn_converting_brackets');
$status = sprintf('%s... %s (%s)', $actionPhrase, $typePhrase, XenForo_Locale::numberFormat($data['position']));
return $data;
}
XenForo_Application::defer('XFA_Roster_Deferred_Upgrade_901020390', array(), 'XFARosterUpgrade901020390', true, XenForo_Application::$time + 5);
Just so you are aware, I too have been getting this bug, so I opened a support thread on their forums. If they get back to me prior to replying here, I will let you know the outcome.I'm getting following error when I open the Tournaments page.
Code:An exception occurred: Class name must be a valid object or a string in /Applications/MAMP/htdocsdev/xenforo/1/library/XenForo/Deferred/Abstract.php on line 49 XenForo_Deferred_Abstract::create() in XenForo/Model/Deferred.php at line 70 XenForo_Model_Deferred->defer() in XenForo/Application.php at line 1482 XenForo_Application::defer() in XFA/Tournament/ControllerPublic/Tournament.php at line 23 XFA_Tournament_ControllerPublic_Tournament->actionIndex() in XenForo/FrontController.php at line 351 XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134 XenForo_FrontController->run() in /Applications/MAMP/htdocsdev/xenforo/1/index.php at line 13
XFA_Roster_Deferred_Upgrade_901020390 is trying to be loaded which doesn't exist
There's only a file called XFA_Tournament_Deferred_Upgrade_902000090_Bracket which also contains obviously several errors:
1. NO $userModel
2. nothing happens in the foreach part
Sure thatCode:public function execute(array $deferred, array $data, $targetRunTime, &$status) { $data = array_merge(array( 'position' => 0, 'batch' => 10 ), $data); $data['batch'] = max(1, $data['batch']); $tournamentModel = XenForo_Model::create('XFA_Tournament_Model_Tournament'); $tournamentIds = $userModel->getTournamentIdsInRange($data['position'], $data['batch']); if (sizeof($tournamentIds) == 0) { return true; } /* Get Tournaments */ $tournaments = $userModel->getTournamentsByIds($tournamentIds); foreach($tournaments AS $tournament) { } /* Prepare for new round */ $data['position'] = end($tournamentIds); $actionPhrase = new XenForo_Phrase('rebuilding'); $typePhrase = new XenForo_Phrase('xfa_tourn_converting_brackets'); $status = sprintf('%s... %s (%s)', $actionPhrase, $typePhrase, XenForo_Locale::numberFormat($data['position'])); return $data; }
belongs into the actionIndex?Code:XenForo_Application::defer('XFA_Roster_Deferred_Upgrade_901020390', array(), 'XFARosterUpgrade901020390', true, XenForo_Application::$time + 5);
I'm clearly not as experienced as you, I have no idea how to do that. I have had to temporarily disable the add-on.I've removed it from the controller which resolved the issue for me. At least i'm able to access the page now
I hope we'll see a bugfix release soon. 2.5.0 is buggy as hell.
Is there any chance to get the previous version? I need this plugin for a clients page
XenForo_Application::defer('XFA_Roster_Deferred_Upgrade_901020390', array(), 'XFARosterUpgrade901020390', true, XenForo_Application::$time + 5);
Corrected bugs:
- Error: Class name must be a valid object or a string - library/XenForo/Deferred/Abstract.php:49
- Not possible to click on bracket nickname in free_input tournaments
- If user doesn't have tournament edit rights, nickname/team name clicking doesn't work
- Clicking nickname in tournament list show tournament creator profile instead of winner profile
Corrected bugs:
- Clicking nicknames in tournament bracket doesn't work when "Use friendly urls" is active
- An exception occurred: Argument 1 passed to XenForo_Template_Helper_Core::helperUserNameHtml() must be of the type array, null given when trying to watch participants in team tournament when there are deleted rosters
Corrected bugs:
- Users without edit rights can't see brackets
Corrected bugs:
- Win/Loss computation error following match result with one team having score higher than 10
We use essential cookies to make this site work, and optional cookies to enhance your experience.