Argument 3 passed to XF\Service\User\Downgrade::__construct() must be an instance of XF\Entity\User, null given

Edman

Member
Affected version
v2.2.10 Patch 1
I keep getting the following error every hour, 50 minutes past the hour. Must be some kind of a cronjob?

Code:
TypeError: Argument 3 passed to XF\Service\User\Downgrade::__construct() must be an instance of XF\Entity\User, null given, called in /home/xxxxxx/public_html/forums/src/XF/Container.php on line 276
src/XF/Service/User/Downgrade.php:29       
           
Generated by: Unknown account

Code:
#0 src/XF/Container.php(276): XF\Service\User\Downgrade->__construct(Object(XF\Pub\App), Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#1 src/XF/App.php(1710): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(3023): XF\Container->create('service', 'XF:User\\Downgra...', Array)
#4 src/XF/Repository/UserUpgrade.php(140): XF\App->service('XF:User\\Downgra...', Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#5 src/XF/Cron/CleanUp.php(188): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 src/XF/Job/Cron.php(37): XF\Cron\CleanUp::runUserDowngrade(Object(XF\Entity\CronEntry))
#7 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}

Code:
[HEADING=2]Request state[/HEADING]
       
           array(4) {
  ["url"] => string(15) "/forums/job.php"
  ["referrer"] => string(58) "https://xxxxxxxxx.com/forums/index.php?register/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Any ideas on how to fix this?
 
Top