Fixed Send test alert cause an error


Well-known member
Affected version
2.3 Beta 2
When I try to send a test alert from ACP I get this error:

TypeError: XF\Job\JobResult::newResume(): Argument #1 ($jobId) must be of type int, null given, called in /home/.../src/XF/Job/AbstractJob.php on line 67 in src/XF/Job/JobResult.php at line 34

    XF\Job\JobResult::newResume() in src/XF/Job/AbstractJob.php at line 67
    XF\Job\AbstractJob->resume() in src/XF/Job/AbstractUserCriteriaJob.php at line 80
    XF\Job\AbstractUserCriteriaJob->run() in src/XF/Admin/Controller/User.php at line 1012
    XF\Admin\Controller\User->actionAlertSend() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2589
    XF\App->run() in src/XF.php at line 532
    XF::runApp() in admin.php at line 13

But the alert is sent anyway.
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 3).

Change log:
Change job result factory methods to allow nullable job IDs
There may be a delay before changes are rolled out to the XenForo Community.
Top Bottom