• Please note that our support is not available weekly from : Thursday 15:00 (GMT+2) to Saturday 13:00 (GMT+2)

Template Error Cannot call method isOnline on a non-object

Customer
Hi,
become followong errors on Halloween Style
  • Template error: Cannot call method isOnline on a non-object (NULL)
  • src/XF/Template/Templater.php:115
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/vhosts...', 1151, Array)
#1 src/XF/Template/Templater.php(1151): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(28): XF\Template\Templater->method(NULL, 'isOnline', Array)
#3 src/XF/Template/Templater.php(962): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(898): XF\Template\Templater->renderExtensionInternal('icon_cell', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(522): XF\Template\Templater->renderExtension('icon_cell', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 internal_data/code_cache/templates/l2/s4/public/forum_view.php(155): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#8 src/XF/Template/Templater.php(962): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(898): XF\Template\Templater->renderExtensionInternal('thread_list', Array, Array, Object(XF\Template\ExtensionSet))
#10 internal_data/code_cache/templates/l2/s4/public/forum_view.php(582): XF\Template\Templater->renderExtension('thread_list', Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(1609): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_view', Array)
#13 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Forum\\View', 'public:forum_vi...', Array)
#15 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#19 src/XF.php(465): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

Thanks in advance
 
Customer
I have installed an other Style "illuminate pro" from XenFocus. I got only that errors when a user select the Halloween-Style. Default-Style and illuminate dark and light works without errors. Ihave also tried to switch some addons, which I have installed in the past day, off, same result.
  • ErrorException: Template error: Cannot call method isOnline on a non-object (NULL)
  • src/XF/Template/Templater.php:1151
and the following stack trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/vhosts...', 1151, Array)
#1 src/XF/Template/Templater.php(1151): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(28): XF\Template\Templater->method(NULL, 'isOnline', Array)
#3 src/XF/Template/Templater.php(962): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(898): XF\Template\Templater->renderExtensionInternal('icon_cell', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l2/s4/public/thread_list_macros.php(522): XF\Template\Templater->renderExtension('icon_cell', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 internal_data/code_cache/templates/l2/s4/public/whats_new_posts.php(230): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#8 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#9 internal_data/code_cache/templates/l2/s4/public/whats_new_posts.php(354): XF\Template\Templater->callMacro('whats_new_posts', 'results', Array, Array)
#10 src/XF/Template/Templater.php(1609): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('whats_new_posts', Array)
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Pos...', 'public:whats_ne...', Array)
#14 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#18 src/XF.php(465): XF\App->run()
#19 index.php(20): XF::runApp('XF\\Pub\\App')
#20 {main}

And that are some one of the queries
PHP:
array(4) {
  ["url"] => string(23) "/whats-new/posts/94593/"
  ["referrer"] => string(25) "https://balkanforum.info/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
PHP:
array(4) {
  ["url"] => string(41) "/forums/sport.54/page-199?no_date_limit=1"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["no_date_limit"] => string(1) "1"
  }
  ["_POST"] => array(0) {
  }
}
I hope that could be fixed soon, because halloween is not the whole year.
Thanks and kind regards
Ivo
Kind regards
 
Staff member
Please open a support ticket and give us admin access to check this closely as this doesn't happen with other customers who got Halloween Theme.

Best Regards
 
Top