Fixed Each breadcrumb provide a 'value' key

Tom

Active member
Affected version
2.0 Beta 2
These errors that appear to be related to the Approval Queue have appeared in the Server Error Logs:

Code:
ErrorException: Template error: Each breadcrumb provide a 'value' key src/XF/Template/Templater.php:1304

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Each breadcrumb...', '/home/afellows/...', 1304, Array)
#1 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Template/Templater.php(1304): trigger_error('Each breadcrumb...', 512)
#2 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/internal_data/code_cache/templates/l1/s11/public/xfrm_resource_wrapper.php(10): XF\Template\Templater->breadcrumbs(Array)
#3 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Template/Templater.php(1133): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Template/Templater.php(722): XF\Template\Templater->renderTemplate('xfrm_resource_w...', Array, false)
#5 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Template/Templater.php(1189): XF\Template\Templater->applyWrappedTemplate('\n\n\n\n\n\n\t\n\t\n\t\n\t\t\n...')
#6 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('public:xfrm_res...', Array)
#7 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Mvc/Dispatcher.php(315): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#9 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Mvc/Dispatcher.php(286): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF/App.php(1777): XF\Mvc\Dispatcher->run()
#12 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/src/XF.php(320): XF\App->run()
#13 /home/afellows/domains/xf2.fellowsfilm.co.uk/public_html/index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}

Request State:
array(4) {
  ["url"] => string(59) "/files/goahead-diamond-bus-repaint-for-dennis-dart-mpd.826/"
  ["referrer"] => string(45) "https://xf2.fellowsfilm.co.uk/approval-queue/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Actually seems to be related to the RM (the URL being accessed is presumably from the RM, the referrer is the approval queue).

Could you identify which category this resource is from?

/files/goahead-diamond-bus-repaint-for-dennis-dart-mpd.826/

And then run this query and let us know the results?
SQL:
SELECT breadcrumb_data
FROM xf_rm_category
WHERE category_id = 1234
Where 1234 is the category_id.
 
The workaround for now is to go and edit the category in the Admin CP and edit the display order of the category and save, this should rebuild the information for that category. You may need to do it on any other categories that trigger the same problem.

Some of the content within the breadcrumb_data field has a different name and specifically this is what is causing the value field to be blank for some of the crumbs.
 
This should be fixed for future upgrades to XFRM2. If you have this issue now, you can use the instructions above to force a cache rebuild (which is all that's needed).
 
Top Bottom