Стоит автоматическая покупка доп прав, но после истечении времени ( 7дней) он не снимает группу у пользователя?
Cron в админке включён.
Повышения прав работает, а вот понижение нет.
Версия XF 2.0.12
Ошибка:
An exception occurred: [TypeError] Argument 3 passed to XF\Service\User\Downgrade::__construct() must be an instance of XF\Entity\User, null given, called in /var/www/www-root/data/www/мой сайт.com/src/XF/Container.php on line 276 in src/XF/Service/User/Downgrade.php on line 29
#1 src/XF/App.php(1362): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(2511): XF\Container->create('service', 'XF:User\\Downgra...', Array)
#4 src/XF/Repository/UserUpgrade.php(136): XF\App->service('XF:User\\Downgra...', Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#5 src/XF/Cron/CleanUp.php(169): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 [internal function]: XF\Cron\CleanUp::runUserDowngrade(Object(XF\Entity\CronEntry))
#7 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#8 src/XF/Job/Manager.php(241): XF\Job\Cron->run(G)
#9 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(14): XF\Job\Manager->runQueue(false, 8)
["url"] => string(8) "/job.php"
["referrer"] => string(48) "
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Cron в админке включён.
Повышения прав работает, а вот понижение нет.
Версия XF 2.0.12
Ошибка:
An exception occurred: [TypeError] Argument 3 passed to XF\Service\User\Downgrade::__construct() must be an instance of XF\Entity\User, null given, called in /var/www/www-root/data/www/мой сайт.com/src/XF/Container.php on line 276 in src/XF/Service/User/Downgrade.php on line 29
- XF\Service\User\Downgrade->__construct() in src/XF/Container.php at line 276
- XF\Container->createObject() in src/XF/App.php at line 1362
- XF\App->XF\{closure}() in src/XF/Container.php at line 228
- XF\Container->create() in src/XF/App.php at line 2511
- XF\App->service() in src/XF/Repository/UserUpgrade.php at line 136
- XF\Repository\UserUpgrade->downgradeExpiredUpgrades() in src/XF/Cron/CleanUp.php at line 169
- XF\Cron\CleanUp::runUserDowngrade()
- call_user_func() in src/XF/Admin/Controller/CronEntry.php at line 112
- XF\Admin\Controller\CronEntry->actionRun() in src/XF/Mvc/Dispatcher.php at line 249
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1934
- XF\App->run() in src/XF.php at line 333
- XF::runApp() in admin.php at line 13
Трассировка стека
#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(1362): XF\Container->createObject('XF\\Service\\User...', Array)
#2 src/XF/Container.php(228): XF\App->XF\{closure}('XF\\Service\\User...', Array, Object(XF\Container))
#3 src/XF/App.php(2511): XF\Container->create('service', 'XF:User\\Downgra...', Array)
#4 src/XF/Repository/UserUpgrade.php(136): XF\App->service('XF:User\\Downgra...', Object(XF\Entity\UserUpgrade), NULL, Object(XF\Entity\UserUpgradeActive))
#5 src/XF/Cron/CleanUp.php(169): XF\Repository\UserUpgrade->downgradeExpiredUpgrades()
#6 [internal function]: XF\Cron\CleanUp::runUserDowngrade(Object(XF\Entity\CronEntry))
#7 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#8 src/XF/Job/Manager.php(241): XF\Job\Cron->run(G)
#9 src/XF/Job/Manager.php(187): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(76): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(14): XF\Job\Manager->runQueue(false, 8)
Содержимое запроса
array(4) {["url"] => string(8) "/job.php"
["referrer"] => string(48) "
У Вас недостаточно прав для просмотра ссылок.
Вход или Регистрация
сайт/whats-new/posts/38758/"["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}