XF 2.3 Best way to fix a botched add-on that causes server errors to be logged constantly?

DarkGizmo

Well-known member
Licensed customer
So on one of the forums I help run I have a few add-ons that seem to be causing errors in the admin CP. I've disabled all add-ons for now but even if I try to uninstall the add-on, the errors still persist as if the add-on is still installed even if it's not? What is the best way to correct this and remove problematic add-ons?
 
An add-on is broken, keeps giving errors across the forum, i've uninstalled said add-on, errors still persist even with the add-on being 'uninstalled'.

Only thing that prevents the errors is if all add-ons are disabled.
 
Here's the error:
Code:
rrorException: Template error: [E_USER_WARNING] Method canViewDbtechCredits is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:1292
Generated by: Unknown account Mar 24, 2026 at 10:20 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/forurxjq/...', 1292)
#1 src/XF/Template/Templater.php(1292): trigger_error('Method canViewD...', 512)
#2 internal_data/code_cache/navigation_cache.php(413): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewDbtechCr...', Array)
#3 src/XF/Template/Templater.php(8223): XF\Pub\App->{closure}(Object(XF\Template\Templater), NULL, Array)
#4 src/XF/Pub/App.php(625): XF\Template\Templater->renderNavigationClosure(Object(Closure), NULL, Array)
#5 src/XF/Pub/App.php(576): XF\Pub\App->getNavigation(Array, NULL)
#6 src/XF/App.php(2571): XF\Pub\App->renderPageHtml('

<div class="b...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(414): XF\App->renderPage('

<div class="b...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#9 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#10 src/XF.php(814): XF\App->run()
#11 index.php(23): XF::runApp('XF\Pub\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(77) "/misc/style-variation?reset=1&t=1774383483%2C825640d9676a09d5ee31e94e07381f35"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["reset"] => string(1) "1"
    ["t"] => string(43) "1774383483,825640d9676a09d5ee31e94e07381f35"
  }
  ["_POST"] => array(0) {
  }
}
 
Here's the error:
Code:
rrorException: Template error: [E_USER_WARNING] Method canViewDbtechCredits is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:1292
Generated by: Unknown account Mar 24, 2026 at 10:20 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/forurxjq/...', 1292)
#1 src/XF/Template/Templater.php(1292): trigger_error('Method canViewD...', 512)
#2 internal_data/code_cache/navigation_cache.php(413): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewDbtechCr...', Array)
#3 src/XF/Template/Templater.php(8223): XF\Pub\App->{closure}(Object(XF\Template\Templater), NULL, Array)
#4 src/XF/Pub/App.php(625): XF\Template\Templater->renderNavigationClosure(Object(Closure), NULL, Array)
#5 src/XF/Pub/App.php(576): XF\Pub\App->getNavigation(Array, NULL)
#6 src/XF/App.php(2571): XF\Pub\App->renderPageHtml('

<div class="b...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(414): XF\App->renderPage('

<div class="b...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#9 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#10 src/XF.php(814): XF\App->run()
#11 index.php(23): XF::runApp('XF\Pub\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(77) "/misc/style-variation?reset=1&t=1774383483%2C825640d9676a09d5ee31e94e07381f35"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["reset"] => string(1) "1"
    ["t"] => string(43) "1774383483,825640d9676a09d5ee31e94e07381f35"
  }
  ["_POST"] => array(0) {
  }
}
The error happens because a navigation link left behind by the DBTech Credits addon is trying to check a permission that no longer exists. Every time any page loads, XenForo runs through all navigation entries, and this broken one crashes the page.

Here's how to fix it:
  1. Log into your XenForo Admin Control Panel
  2. In the left sidebar, click Setup
  3. Under Setup, click Navigation
  4. You'll see a list of all navigation entries. Look through the list for anything related to DBTech Credits. The entry ID will likely contain "dbtech" or "credits" in the name. You can also use the filter/search box at the top of the list to search for "dbtech" or "credits"
  5. Once you find it, click on it to open it
  6. At the bottom of the edit page, there will be a Delete button. Click it and confirm
As soon as you delete that entry, XenForo automatically rebuilds the navigation cache. The broken method call gets removed from the cache, and the error stops appearing.

If you're not sure which entry it is, look for any entry that has a condition or extra data referencing "canViewDbtechCredits" that's the exact method name from the error. You can also look for any entry whose addon association shows as unknown or missing.
 
Back
Top Bottom