XF 2.1 Error log - template error

neomlt

Member
Error code and i do not know how to repair, my english is not so good because i'm german.


Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Function url is...', '/usr/www/users/...', 914, Array)
#1 src/XF/Template/Templater.php(914): trigger_error('Function url is...', 512)
#2 src/XF/Template/Templater.php(906): XF\Template\Templater->func('url', Array, false)
#3 internal_data/code_cache/navigation_cache.php(45): XF\Template\Templater->fn('url', Array, false)
#4 src/XF/Template/Templater.php(6660): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'members', Array)
#5 src/XF/Pub/App.php(560): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'members', Array)
#6 src/XF/Pub/App.php(513): XF\Pub\App->getNavigation(Array, 'members')
#7 src/XF/App.php(2001): XF\Pub\App->renderPageHtml('<div class="blo...', Array, Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(402): XF\App->renderPage('<div class="blo...', Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Message), 'html')
#10 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#11 src/XF.php(391): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}


Request state
array(4) {
["url"] => string(21) "/members/blackboo.146"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
did you meen this?

ErrorException: Template error: Function url is unknown src/XF/Template/Templater.php:914
How often is that error thrown in the error log?

url is not a function in Templater.php. The defaults are base_url, css_url, debug_url, gravatar_url, and js_url. Do you have any add-ons installed (if so, disable them to see if the error goes away and if they do re-enable the add-ons one at a time to find the add-on causing the error), or have you edited a template recently?
 
Last edited:
Back
Top Bottom