androix

Customer
Can anyone tell me the most likely reason for this error?

ErrorException: Template error: [E_USER_WARNING] Cannot call method getMode on a non-object (NULL) -
src/XF/Template/Templater.php:1151

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/...', 1151)
#1 src/XF/Template/Templater.php(1151): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s167/public/PAGE_CONTAINER.php(459): XF\Template\Templater->method(NULL, 'getMode', Array)
#3 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l1/s167/public/PAGE_CONTAINER.php(2417): XF\Template\Templater->callMacro('PAGE_CONTAINER', 'default_footer', Array, Array)
#5 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#6 src/XF/Pub/App.php(562): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#7 src/XF/App.php(2131): XF\Pub\App->renderPageHtml('

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

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

I have several styles installed, and this is the only one generating this error. TIA
 
Actually, even though I don't recall seeing anything specific related to the addon in the logs, and I'm pretty sure I had already disabled it by the time I posted the stack trace above, this seems to be an issue with this addon:


The error returned when I reenabled the addon. Which would be a non-issue for me, since I don't have it turned on that often, but unfortunately the main error shows publicly, so I can't use the addon unless I want to expose users to it. No big deal, though, I'll just go back to doing it the old fashioned way for now. (y)
 
Okay, last post and I'm shutting up. The problem is not the addon. It's putting the forum in debug mode that causes the error to appear on the public side. And I'm still seeing the errors generated in the admin, it's just that at least nothing shows to users when out of debug mode:

ErrorException: Template error: [E_USER_WARNING] Cannot call method getMode on a non-object (NULL) - src/XF/Template/Templater.php:1151

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/...', 1151)
#1 src/XF/Template/Templater.php(1151): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s167/public/PAGE_CONTAINER.php(459): XF\Template\Templater->method(NULL, 'getMode', Array)
#3 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l1/s167/public/PAGE_CONTAINER.php(2455): XF\Template\Templater->callMacro('PAGE_CONTAINER', 'default_footer', Array, Array)
#5 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#6 src/XF/Pub/App.php(562): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#7 src/XF/App.php(2131): XF\Pub\App->renderPageHtml('

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

...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#11 src/XF.php(488): XF\App->run()
#12 index.php(21): XF::runApp('XF\\Pub\\App')
#13 {main}
 
Hello!

Which version of XenForo are you running? (Look in the admin panel bottom right)
Which version of the style are you running? (Admin panel -> Appearance -> Style properties -> [XB] XenBase Framework
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back