Earl
Well-known member
- Affected version
- 2.1.0 Preview 1
ErrorException: Template error: Method canLike is not callable on the given object (XFRM\Entity\ResourceUpdate) src/XF/Template/Templater.php:972
Stack Trace
Request state
Stack Trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canLike ...', 'src/XF/Tem...', 972, Array)
#1 src/XF/Template/Templater.php(972): trigger_error('Method canLike ...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/xfrm_resource_view.php(197): XF\Template\Templater->method(Object(XFRM\Entity\ResourceUpdate), 'canLike', Array)
#3 src/XF/Template/Templater.php(1293): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2155): XF\Mvc\Dispatcher->run()
#11 src/XF.php(389): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Code:
<pre class='xdebug-var-dump' dir='ltr'>
<small>/app/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
'url' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php?resources/test-resource-72.113/'</font> <i>(length=42)</i>
'referrer' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'http://localhost/index.php?resources/categories/mobiles.3/add'</font> <i>(length=61)</i>
'_GET' <font color='#888a85'>=></font>
<b>array</b> <i>(size=1)</i>
'resources/test-resource-72_113/' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'_POST' <font color='#888a85'>=></font>
<b>array</b> <i>(size=0)</i>
<i><font color='#888a85'>empty</font></i>
</pre>