XF 2.1 Error: TypeError: Argument 3 passed to XF\Service\User\Downgrade

Sad_Sheep

Member
Hello,

when running the cron job "Downgrade expired user upgrades" following error occurres:


Code:
TypeError: Argument 3 passed to XF\Service\User\Downgrade::__construct() must be an instance of XF\Entity\User, null given, called in /var/www/haf/src/XF/Container.php on line 270 src/XF/Service/User/Downgrade.php:29
Generated by: Unknown account Apr 17, 2020 at 1:50 AM
Stack trace
#0 src/XF/Container.php(270): XF\Service\User\Downgrade->__construct()
#1 src/XF/App.php(1570): XF\Container->createObject()
#2 src/XF/Container.php(228): XF\App->XF\{closure}()
#3 src/XF/App.php(2776): XF\Container->create()
#4 src/XF/Repository/UserUpgrade.php(141): XF\App->service()
#5 src/XF/Cron/CleanUp.php(183): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 [internal function]: XF\Cron\CleanUp::runUserDowngrade()
#7 src/XF/Job/Cron.php(34): call_user_func()
#8 src/XF/Job/Manager.php(253): XF\Job\Cron->run()
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal()
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry()
#11 job.php(42): XF\Job\Manager->runQueue()
#12 {main}

Latest XF Version running on php 7.4

Any Help would be appreciated

Regards
 
Back
Top Bottom