XF 2.0 Rebuild Trophies - ErrorException

hqarrse

Active member
We've just upgraded one one of our sites to XF2 and when I try to rebuild trophies get the following error:

ErrorException: [E_NOTICE] Undefined index: user_group_ids in src/XF/Criteria/User.php at line 243
XF::handlePhpError() in src/XF/Criteria/User.php at line 243
XF\Criteria\User->_matchUserGroups() in src/XF/Criteria/AbstractCriteria.php at line 53
XF\Criteria\AbstractCriteria->isMatched() in src/XF/Repository/Trophy.php at line 68
XF\Repository\Trophy->updateTrophiesForUser() in src/XF/Job/Trophy.php at line 63
XF\Job\Trophy->run() in src/XF/Job/Manager.php at line 241
XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 187
XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 103
XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1889
XF\App->run() in src/XF.php at line 328
XF::runApp() in admin.php at line 13

Any help or suggestions would be gratefully received?
 
Sounds like there are some trophies that don't have the expected data. That can probably be fixed by going into each existing trophy and hitting save, which should re-save all of the criteria so it contains the expected values.

After that, refreshing the page which displays this error should hopefully allow it to go through.
 
Back
Top Bottom