XF 2.2 Error while i was trying to install a addon

Niiicu

Member
Hello,

I just got this error while i was trying to install a addon and now i can't fix it. Not even my admincp working now.
How can i fix this please?
This is the addon - https://xenforo.com/community/resources/liam-w-thread-solutions.5653/


Code:
An exception occurred: [ErrorException] [E_WARNING] Declaration of LiamW\ThreadSolutions\XF\Template\Templater::fnPrefix($templater, &$escape, $contentType, $prefixId, $format = 'html', $append = NULL) should be compatible with SV\MultiPrefix\XF\Template\Templater::fnPrefix($templater, &$escape, $contentType, $prefixId, $format = 'html', $append = NULL, $appendTrailing = NULL) in src/addons/LiamW/ThreadSolutions/XF/Template/Templater.php on line 65

XF::handlePhpError() in src/vendor/composer/ClassLoader.php at line 480
include() in src/vendor/composer/ClassLoader.php at line 480
Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 346
Composer\Autoload\ClassLoader->loadClass()
spl_autoload_call()
class_exists() in src/XF/Extension.php at line 174
XF\Extension->extendClass() in src/XF/App.php at line 2857
XF\App->extendClass() in src/XF/App.php at line 1812
XF\App->setupTemplaterObject() in src/XF/App.php at line 1374
XF\App->XF\{closure}() in src/XF/Container.php at line 30
XF\Container->offsetGet() in src/XF/App.php at line 3233
XF\App->templater() in src/XF/Pub/App.php at line 439
XF\Pub\App->preRender() in src/XF/Mvc/Dispatcher.php at line 397
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 60
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
XF\App->run() in src/XF.php at line 512
XF::runApp() in index.php at line 20
 
As per the manual you can disable listeners via src/config.php:

PHP:
$config['enableListeners'] = false;

You should then be able to log in to your Admin control panel and uninstall and remove the add-on.

Once that is done you should be able to remove the line above.
 
As per the manual you can disable listeners via src/config.php:

PHP:
$config['enableListeners'] = false;

You should then be able to log in to your Admin control panel and uninstall and remove the add-on.

Once that is done you should be able to remove the line above.
Yes, i fixed with this line
Thank you, Cris!
 
Top Bottom