MG 2.3 Server errors - Media Gallery 2.3.11

PaulProe

Active member
Licensed customer
After a recent upgrade to Media Gallery, we are seeing a large number of server errors. Trying to track it down, Google is pointing its finger at the Xenforo Plugin Media Gallery.

This is a copy of one of the error messages. Any suggestions on where to begin troubleshooting

Thanks

Paul

  • ErrorException: Template error: [E_USER_WARNING] Method canViewMedia is not callable on the given object (XF\Entity\User)
  • src/XF/Template/Templater.php:1295
  • Generated by: Unknown account
  • Aug 6, 2026 at 7:36 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/talkcobr/...', 1295)
#1 src/XF/Template/Templater.php(1295): trigger_error('Method canViewM...', 512)
#2 internal_data/code_cache/navigation_cache.php(390): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewMedia', Array)
#3 src/XF/Template/Templater.php(8267): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(625): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(576): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2577): XF\Pub\App->renderPageHtml('





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






...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#9 src/XF/App.php(2830): XF\Mvc\Dispatcher->run()
#10 src/XF.php(850): XF\App->run()
#11 index.php(23): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state​

array(4) {
["url"] => string(30) "/threads/no-spark.14893/page-2"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
What version of XF itself are you using? MG may be dependent on it specifically. Have you also tried disabling all other plugins, if any?

I'm using XF 2.3.12 and MG 2.3.11, and everything works great so far.

Just my initial thoughts.
 
This will be of zero help to you unfortunately, but I'm getting the same exact error across 4 different forums.
It's almost certainly related to the image gallery, but danged if I can figure out a fix!
 
This will be of zero help to you unfortunately, but I'm getting the same exact error across 4 different forums.
It's almost certainly related to the image gallery, but danged if I can figure out a fix!
The OP was referencing MG 2.3.11. There is now a version 2.3.13. Have you tried that one?
 
Back
Top Bottom