- Affected version
- 2.3.2
Running:
Will cause:
The error might vary depending on what addons you have installed.
This error has been generated on a fresh test environment with only Resource Manager and Advanced Search addons installed after I faced that issue on my live site, to get sure it is not just a failure of my live forum database.
Will cause:
Code:
Server error log
TypeError: Argument 2 passed to XFRM\Job\ResourceUpdateEmbedMetadata::rebuildQuotes() must be an instance of XFRM\Job\PreparerService, instance of XF\Service\Message\PreparerService given, called in /var/www/vhosts/xxx.xxx/httpdocs/src/XF/Job/AbstractEmbedMetadataJob.php on line 98 src/addons/XFRM/Job/ResourceUpdateEmbedMetadata.php:42
Generated by: Admin Aug 23, 2024 at 3:00 AM
Stack trace
#0 src/XF/Job/AbstractEmbedMetadataJob.php(98): XFRM\Job\ResourceUpdateEmbedMetadata->rebuildQuotes(Object(XFRM\Entity\ResourceUpdate), Object(XF\Service\Message\PreparerService), Array)
#1 src/XF/Job/Manager.php(275): XF\Job\AbstractEmbedMetadataJob->run(8)
#2 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#3 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#4 src/XF/Admin/Controller/ToolsController.php(146): XF\Job\Manager->runByIds(Array, 8)
#5 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\ToolsController->actionRunJob(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(265): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#7 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\ToolsController), NULL)
#8 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#10 src/XF.php(802): XF\App->run()
#11 admin.php(15): XF::runApp('XF\\Admin\\App')
#12 {main}
Request state
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(115) "https://xxx.xxx/admin.php?tools/run-job&only_id=1422&_xfRedirect=%2Fadmin.php%3Ftools%2Frebuild%26success%3D1"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(55) "https://xxx.xxx/admin.php?tools/rebuild&success=1"
["_xfToken"] => string(8) "********"
["only_ids"] => string(4) "1422"
}
}
The error might vary depending on what addons you have installed.
This error has been generated on a fresh test environment with only Resource Manager and Advanced Search addons installed after I faced that issue on my live site, to get sure it is not just a failure of my live forum database.