Processing approval queue Error: Call to undefined function XF\Job\set_time_limit() on php 8

hkymre

Member
Using 2.2.8 & PHP 8
When marking an account as spam clean in the approval queue then the below error is thrown.
Changing to PHP 7.4 works fine

Code:
Server error log
[LIST]
[*]Error: Call to undefined function XF\Job\set_time_limit()
[*]src/XF/Job/AbstractJob.php:24
[*]Generated by: Unknown account
[*]Apr 18, 2022 at 10:25 AM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/XF/Container.php(276): XF\Job\AbstractJob->__construct(Object(XF\Pub\App), 70168, Array)
#1 src/XF/App.php(1670): XF\Container->createObject('XF\\Job\\Approval...', Array, true)
#2 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Job\\Approval...', Array, Object(XF\Container))
#3 src/XF/App.php(2937): XF\Container->create('job', 'XF:ApprovalQueu...', Array)
#4 src/XF/Job/Manager.php(238): XF\App->job('XF:ApprovalQueu...', 70168, Array)
#5 src/XF/Job/Manager.php(243): XF\Job\Manager->getJobRunner(Array)
#6 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#7 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#8 job.php(22): XF\Job\Manager->runByIds(Array, 8)
#9 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(39) "https://sitename/approval-queue/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(5) {
    ["only_ids"] => array(1) {
      [0] => string(5) "70168"
    }
    ["_xfRequestUri"] => string(16) "/approval-queue/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Top