Cannot reproduce ErrorException: Template error: Method canViewResources is not callable on the given object (XFMG\XF\Entity\User) src/XF/Template/Templater.php:932

I'm also getting this.

Code:
INSERT  INTO `xf_rm_resource_update` (`resource_id`, `message_state`, `title`, `message`, `embed_metadata`, `resource_update_id`, `post_date`, `attach_count`, `likes`, `like_users`, `ip_id`, `warning_id`, `warning_message`, `react_users`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(40): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(161): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1389): XF\Db\AbstractAdapter->insert('xf_rm_resource_...', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1121): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/XF/Mvc/Entity/Entity.php(1139): XF\Mvc\Entity\Entity->save(true, false)
#8 src/addons/XFRM/Service/ResourceItem/Create.php(288): XF\Mvc\Entity\Entity->save(true, false)
#9 src/XF/Service/ValidateAndSavableTrait.php(40): XFRM\Service\ResourceItem\Create->_save()
#10 src/addons/XFRM/Pub/Controller/Category.php(268): XFRM\Service\ResourceItem\Create->save()
#11 src/XF/Mvc/Dispatcher.php(249): XFRM\Pub\Controller\Category->actionAdd(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XFRM:Category', 'add', 'json', Object(XF\Mvc\ParameterBag), 'xfrm', Object(XFA\RMMarketplace\XFRM\Pub\Controller\Category), NULL)
#13 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#15 src/XF.php(328): XF\App->run()
#16 index.php(13): XF::runApp('XF\\Pub\\App')
#17 {main}
 
Back
Top Bottom