XF 2.0 ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User)

BassMan

Well-known member
Hi,

what means this server error?


Server error log
  • ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User)
  • src/XF/Template/Templater.php:934
  • Generated by: Unknown account
  • 16. mar 2018 ob 01.12
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canViewR...', '/home/mladiuc/p...', 934, Array)
#1 src/XF/Template/Templater.php(934): trigger_error('Method canViewR...', 512)
#2 internal_data/code_cache/navigation_cache.php(255): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewResource...', Array)
#3 src/XF/Template/Templater.php(5724): 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(1726): XF\Pub\App->renderPageHtml('\n\n<div class="b...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(310): XF\App->renderPage('\n\n<div class="b...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#9 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#10 src/XF.php(328): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}
 
Has this only happened once? At the time it happened, did it coincide with a RM upgrade, or uploading the files? If so, and otherwise the "Resources" navigation tab is visible, it's safe to ignore.
 
That's was for the first time, yes. It happened at night, no upgrading or uploading files. It was the RSS feed that triggered it.

Otherwise, everything works normally.

Thank you.
 
Back
Top Bottom