Fixed Previously created Public navigation crashes forum when add-on is enabled.

AndyB

Well-known member
Affected version
2.3.0 Beta 1
If I enable an add-on which has a Public navigation that was previously created, I get the following error when I go to the forum.

1711143694505.webp

I need to bring up the Public navigation in the Admin control panel and re-save it to fix the issue.

Here's the Public navigation:

1711143868283.webp
 
Error: Call to undefined method XF\Template\Templater::fn() internal_data/code_cache/navigation_cache.php:595
Generated by: Andy Mar 22, 2024 at 2:36 PM

#0 src/XF/Template/Templater.php(8054): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#1 src/XF/Pub/App.php(603): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#2 src/XF/Pub/App.php(554): XF\Pub\App->getNavigation(Array, 'forums')
#3 src/XF/App.php(2363): XF\Pub\App->renderPageHtml('
...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#4 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('
...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#5 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#6 src/XF/App.php(2588): XF\Mvc\Dispatcher->run()
#7 src/XF.php(532): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 6).

Change log:
Rebuild navigation entry compiled data to remove stale templater calls
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom