Roiarthur
Active member
Hi
I have a recurrent error and i cannot find what it is causing it
Do you have any solution
Thanks in advance
By the way this file and forum has been deleted: /attachments/optimisation-w10/7216d1466993048-installer-le-xp-mode-francais-sous-windows-10-33.jpg
I have a recurrent error and i cannot find what it is causing it
Do you have any solution
Thanks in advance
By the way this file and forum has been deleted: /attachments/optimisation-w10/7216d1466993048-installer-le-xp-mode-francais-sous-windows-10-33.jpg
Code:
ErrorException: Template error: [E_USER_WARNING] Method canUseLoginAsUser is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:1161
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/tutoriau/...', 1161, Array)
#1 src/XF/Template/Templater.php(1161): trigger_error('Method canUseLo...', 512)
#2 internal_data/code_cache/templates/l2/s22/public/xc_login_as_user_staff_bar.php(21): XF\Template\Templater->method(Object(XF\Entity\User), 'canUseLoginAsUs...', Array)
#3 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Templater.php(1655): XF\Template\Templater->renderTemplate('xc_login_as_use...', Array)
#5 internal_data/code_cache/templates/l2/s22/public/PAGE_CONTAINER.php(1921): XF\Template\Templater->includeTemplate('public:xc_login...', Array)
#6 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#7 src/XF/Pub/App.php(562): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#8 src/XF/App.php(2131): XF\Pub\App->renderPageHtml('
<div class="b...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(402): XF\App->renderPage('
<div class="b...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'jpg')
#11 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#12 src/XF.php(488): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(98) "/attachments/optimisation-w10/7216d1466993048-installer-le-xp-mode-francais-sous-windows-10-33.jpg"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}