Tickets Fixed ErrorException: Template error: Method hasViewableDiscussion is not callable on the given object (NF\Tickets\Entity\Ticket) src\XF\Template\Templater.

When assigning and afterwards disconnecting a discussion thread:

Code:
Server error log
[LIST]
[*]ErrorException: Template error: Method hasViewableDiscussion is not callable on the given object (NF\Tickets\Entity\Ticket)
[*]src\XF\Template\Templater.php:994
[*]Generated by: SeToY
[*]7 Aug 2019 at 00:37
[/LIST]
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method hasViewa...', 'D:\\inetpub\\wwwr...', 994, Array)
#1 src\XF\Template\Templater.php(994): trigger_error('Method hasViewa...', 512)
#2 internal_data\code_cache\templates\l1\s19\public\nf_tickets_change_thread.php(25): XF\Template\Templater->method(Object(NF\Tickets\Entity\Ticket), 'hasViewableDisc...', Array)
#3 src\XF\Template\Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#4 src\XF\Template\Template.php(24): XF\Template\Templater->renderTemplate('nf_tickets_chan...', Array)
#5 src\XF\Mvc\Renderer\Json.php(84): XF\Template\Template->render()
#6 src\XF\Mvc\Renderer\Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('NF\\Tickets:Tick...', 'public:nf_ticke...', Array)
#7 src\XF\Mvc\Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('NF\\Tickets:Tick...', 'public:nf_ticke...', Array)
#8 src\XF\Mvc\Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src\XF\Mvc\Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src\XF\Mvc\Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src\XF\App.php(2178): XF\Mvc\Dispatcher->run()
#12 src\XF.php(390): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

Code:
Request state
array(4) {
  ["url"] => string(190) "/tickets/ticket-title.1425/change-thread?_xfRequestUri=%2Ftickets%2Fticket-title.1425%2F&_xfWithData=1&_xfToken=1565131048%2Cf299069e0a0b091bc6d8f0c0bb3b2119&_xfResponseType=json"
  ["referrer"] => string(69) "https://domain.com/tickets/ticket-title.1425/"
  ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(33) "/tickets/ticket-title.1425/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1565131048,f299069e0a0b091bc6d8f0c0bb3b2119"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Back
Top