XF 2.1 How to Disabling an add-on


Active member
I tray
$config['enableListeners'] = false;

But i got an error

An exception occurred: [TypeError] Argument 3 passed to XF\Template\Templater::fnCssUrl() must be of the type array, string given in src/XF/Template/Templater.php on line 2158

  1. XF\Template\Templater->fnCssUrl()
  2. call_user_func_array() in src/XF/Template/Templater.php at line 914
  3. XF\Template\Templater->fn() in internal_data/code_cache/templates/l1/s26/public/helper_js_global.php at line 27
  4. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 693
  5. XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s26/public/PAGE_CONTAINER.php at line 391
  6. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1293
  7. XF\Template\Templater->renderTemplate() in src/XF/Pub/App.php at line 549
  8. XF\Pub\App->renderPageHtml() in src/XF/App.php at line 1966
  9. XF\App->renderPage() in src/XF/Mvc/Dispatcher.php at line 362
  10. XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 53
  11. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2155
  12. XF\App->run() in src/XF.php at line 389
  13. XF::runApp() in index.php at line 20


Well-known member
I assume you can't do that from admin panel because something is bugged?

Then you can disable specific add-on from command line:
php cmd.php xf-addon:disable Addon/Name
to disable add-on with namespace Addon/Name

php cmd.php xf-addon:disable
to disable all add-ons

php cmd.php list
for list of all available options


If you don't know what a command line is and where you could find it, you should read more about it and how they work.

I know how to use Putty, I know what command line in linux and Putty is, but i dont know if xenforo have it own command line. Many software or games or interfaces have a command line, that is why I hace a mess if people just say " command line ".