I'm having some issues that I'm trying to resolve after the latest Xenforo 2.0 update. I'm getting this in the error logs, along with another similar error, both pointing to Templater.php
If anyone can point me in the right direction to help resolve this, it would be much appreciated!
Thanks
---------------------------------------
ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:935
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canViewR...', '/home/myaccount/...', 935, Array)
#1 src/XF/Template/Templater.php(935): trigger_error('Method canViewR...', 512)
#2 internal_data/code_cache/navigation_cache.php(317): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewResource...', Array)
#3 src/XF/Template/Templater.php(5746): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(462): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(415): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(1766): XF\Pub\App->renderPageHtml('\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(310): XF\App->renderPage('\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#10 src/XF.php(328): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(1) "/"
["referrer"] => string(38) "https://mysite.com/whats-new/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
If anyone can point me in the right direction to help resolve this, it would be much appreciated!
Thanks
---------------------------------------
ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:935
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canViewR...', '/home/myaccount/...', 935, Array)
#1 src/XF/Template/Templater.php(935): trigger_error('Method canViewR...', 512)
#2 internal_data/code_cache/navigation_cache.php(317): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewResource...', Array)
#3 src/XF/Template/Templater.php(5746): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(462): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(415): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(1766): XF\Pub\App->renderPageHtml('\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(310): XF\App->renderPage('\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#10 src/XF.php(328): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(1) "/"
["referrer"] => string(38) "https://mysite.com/whats-new/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}