Not a bug TypeError: Argument 3 passed to XFRM\Template\TemplaterSetup::fnResourceIcon() must be an instance of XFRM\Entity\ResourceItem, null given

Affected version
2.1.5

alsoGAMER

Member
#0 [internal function]: XFRM\Template\TemplaterSetup->fnResourceIcon(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), true, NULL, 's', '/')
#1 src/XF/Template/Templater.php(941): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l2/s3/public/xfa_rmmp_xfrm_resource_list_macros.php(215): XF\Template\Templater->func('resource_icon', Array, true)
#3 src/XF/Template/Templater.php(706): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l2/s3/public/xfa_rmmp_user_purchases.php(49): XF\Template\Templater->callMacro('xfa_rmmp_xfrm_r...', 'purchase', Array, Array)
#5 src/XF/Template/Templater.php(1320): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfa_rmmp_user_p...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('', 'public:xfa_rmmp...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#13 src/XF.php(391): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
 

alsoGAMER

Member
Yep, the problem persists, but now the stack trace hasn't the lines about paid registrations

An exception occurred: [TypeError] Argument 3 passed to XFRM\Template\TemplaterSetup::fnResourceIcon() must be an instance of XFRM\Entity\ResourceItem, null given in src/addons/XFRM/Template/TemplaterSetup.php on line 7

  1. XFRM\Template\TemplaterSetup->fnResourceIcon()
  2. call_user_func_array() in src/XF/Template/Templater.php at line 941
  3. XF\Template\Templater->func() in internal_data/code_cache/templates/l2/s3/public/xfa_rmmp_xfrm_resource_list_macros.php at line 215
  4. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 706
  5. XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l2/s3/public/xfa_rmmp_user_purchases.php at line 49
  6. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1320
  7. XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
  8. XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
  9. XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 458
  10. XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 440
  11. XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 400
  12. XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 58
  13. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
  14. XF\App->run() in src/XF.php at line 391
  15. XF::runApp() in index.php at line 20
 

Mike

XenForo developer
Staff member
Yes, this is being triggered within the xfa_rmmp_xfrm_resource_list_macros template, which is some XFA-related template, so the issue would need to be resolved there.
 
Top