PHP Error occurred during installing addon "short link to the profile"

modabbirul8775

New member
Registered
Joined
May 14, 2020
Messages
1
Points
3

Reputation:

Greetings,
I'm using xenforo v2.2.0 beta 2 and tried to install "short link to the profile" addon from this link "Short link to the profile from enxf" I need a solve of it .please help me
But during installing I'm getting this error,

In admin panel:

PHP:
An exception occurred: [ErrorException] [E_WARNING] Declaration of BS\SLTTP\XF\Mvc\Router::buildLink($link, $data = NULL, array $parameters = Array) should be compatible with XF\Mvc\Router::buildLink($link, $data = NULL, array $parameters = Array, $hash = NULL) in src/addons/BS/SLTTP/XF/Mvc/Router.php on line 10
[LIST=1]
[*][B]XF::handlePhpError()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]444[/B]
[*][B]include()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]444[/B]
[*][B]Composer\Autoload\includeFile()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]322[/B]
[*][B]Composer\Autoload\ClassLoader->loadClass()[/B]
[*][B]spl_autoload_call()[/B]
[*][B]class_exists()[/B] in [B]src/XF/Extension.php[/B] at line [B]172[/B]
[*][B]XF\Extension->extendClass()[/B] in [B]src/XF/App.php[/B] at line [B]2809[/B]
[*][B]XF\App->extendClass()[/B] in [B]src/XF/App.php[/B] at line [B]435[/B]
[*][B]XF\App->XF\{closure}()[/B] in [B]src/XF/Container.php[/B] at line [B]28[/B]
[*][B]XF\Container->offsetGet()[/B] in [B]src/XF/Admin/App.php[/B] at line [B]31[/B]
[*][B]XF\Admin\App->XF\Admin\{closure}()[/B] in [B]src/XF/Container.php[/B] at line [B]28[/B]
[*][B]XF\Container->offsetGet()[/B] in [B]src/XF/App.php[/B] at line [B]2441[/B]
[*][B]XF\App->router()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]476[/B]
[*][B]XF\Mvc\Dispatcher->getRouter()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]65[/B]
[*][B]XF\Mvc\Dispatcher->route()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]47[/B]
[*][B]XF\Mvc\Dispatcher->run()[/B] in [B]src/XF/App.php[/B] at line [B]2298[/B]
[*][B]XF\App->run()[/B] in [B]src/XF.php[/B] at line [B]459[/B]
[*][B]XF::runApp()[/B] in [B]admin.php[/B] at line [B]13[/B]
[/LIST]


And in index.php :

PHP:
An exception occurred: [ErrorException] [E_WARNING] Declaration of BS\SLTTP\XF\Mvc\Router::buildLink($link, $data = NULL, array $parameters = Array) should be compatible with XF\Mvc\Router::buildLink($link, $data = NULL, array $parameters = Array, $hash = NULL) in src/addons/BS/SLTTP/XF/Mvc/Router.php on line 10
[LIST=1]
[*][B]XF::handlePhpError()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]444[/B]
[*][B]include()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]444[/B]
[*][B]Composer\Autoload\includeFile()[/B] in [B]src/vendor/composer/ClassLoader.php[/B] at line [B]322[/B]
[*][B]Composer\Autoload\ClassLoader->loadClass()[/B]
[*][B]spl_autoload_call()[/B]
[*][B]class_exists()[/B] in [B]src/XF/Extension.php[/B] at line [B]172[/B]
[*][B]XF\Extension->extendClass()[/B] in [B]src/XF/App.php[/B] at line [B]2809[/B]
[*][B]XF\App->extendClass()[/B] in [B]src/XF/App.php[/B] at line [B]348[/B]
[*][B]XF\App->XF\{closure}()[/B] in [B]src/XF/Container.php[/B] at line [B]28[/B]
[*][B]XF\Container->offsetGet()[/B] in [B]src/XF/Pub/App.php[/B] at line [B]41[/B]
[*][B]XF\Pub\App->XF\Pub\{closure}()[/B] in [B]src/XF/Container.php[/B] at line [B]28[/B]
[*][B]XF\Container->offsetGet()[/B] in [B]src/XF/App.php[/B] at line [B]2441[/B]
[*][B]XF\App->router()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]476[/B]
[*][B]XF\Mvc\Dispatcher->getRouter()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]65[/B]
[*][B]XF\Mvc\Dispatcher->route()[/B] in [B]src/XF/Mvc/Dispatcher.php[/B] at line [B]47[/B]
[*][B]XF\Mvc\Dispatcher->run()[/B] in [B]src/XF/App.php[/B] at line [B]2298[/B]
[*][B]XF\App->run()[/B] in [B]src/XF.php[/B] at line [B]459[/B]
[*][B]XF::runApp()[/B] in [B]index.php[/B] at line [B]20[/B]
[/LIST]
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,149
Points
823

Reputation:

[BS] Short links to the profile don't support xf2.2, Please wait for developer updates
 

DareSec

Inforc3r
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 25, 2019
Messages
1,372
Points
523

Reputation:

bs addon are full of bugs
 

Soft4Win

Developer
Staff member
Moderator
Collaborate
Registered
Joined
Apr 27, 2019
Messages
370
Points
103

Reputation:

Well the error is pretty straight forward, open the files you are having and go to "src\addons\BS\SLTTP\XF\Mvc" and Open "Router.php" over there and replace :-

PHP:
public function buildLink($link, $data = null, array $parameters = [])

with

PHP:
public function buildLink($link, $data = NULL, array $parameters = [], $hash = NULL)

Please note that Xenforo 2.2 have many things changed compared to XenForo 2.1, so you might face more errors on using XenForo 2.1 addon on XenForo 2.2, some might work perfectly, but some might not, due to change in structure.
 

alleluia

Member
Registered
Joined
Mar 17, 2021
Messages
16
Points
3

Reputation:

Yeahh !!

Many thanks: I had a similar error installing multiprefix with another incompatible addons and the Soft4Win 's response help me to solve my problem
Like you guys for your forum !!!
 
Top