XF 2.1 Server Error with Brand New Test Install

Tiki Tiki

Active member
Brand new XF 2.10 Patch 2 test install, MAMP/localhost, one user (Admin), one post, getting the following server error repeatedly:
Code:
ErrorException: Template error: Method canViewResources is not callable on the given object (XF\Entity\User)
src/XF/Template/Templater.php:994

Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canViewR...', '/Applications/M...', 994, Array)
#1 src/XF/Template/Templater.php(994): trigger_error('Method canViewR...', 512)
#2 internal_data/code_cache/navigation_cache.php(525): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewResource...', Array)
#3 src/XF/Template/Templater.php(6660): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(560): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(513): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2001): XF\Pub\App->renderPageHtml('











...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(402): XF\App->renderPage('











...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#10 src/XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state
array(4) {
  ["url"] => string(33) "/index.php?threads/hello-world.1/"
  ["referrer"] => string(52) "http://localhost:8888/index.php?forums/main-forum.2/"
  ["_GET"] => array(1) {
    ["threads/hello-world_1/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}

Any ideas as to what is happening?
 
Back
Top Bottom