Login as User (LAU2)

Login as User (LAU2) 1.2.9

No permission to download
Looks like 2.2.13 broke this. I can login as a user, but on every subsequent page I'm back to my original account 😩
 
Runs here without problems, as always, also under XF 2.2.13
Try as I might, I couldn't replicate this - I had wondered if it was due to logging in as someone who was also logged in on another computer, but nope...

I retract my bug report!
 
There is a bug on this addon:
[22-Mar-2024 03:10:42 UTC] PHP Deprecated: Optional parameter $forceIncludeVisitor declared before required parameter $userLimit is implicitly treated as a required parameter in /home/home/public_html/community/src/addons/XenConcept/LoginAsUser/XF/Repository/SessionActivity.php on line 16
 
There is a bug on this addon:
[22-Mar-2024 03:10:42 UTC] PHP Deprecated: Optional parameter $forceIncludeVisitor declared before required parameter $userLimit is implicitly treated as a required parameter in /home/home/public_html/community/src/addons/XenConcept/LoginAsUser/XF/Repository/SessionActivity.php on line 16
What version of XF are you running?
v2.2.15 works correctly for me.
If the app relies on jQuery and you upgraded to v2.3 (jQuery was removed) the app will not function.
 
Last edited:
AHH in the add-on! Yes that is outdated I am no longer active in XF as an add-on developer.
Even though this addon is no longer maintained, it seems to be working fine, with no errors in ACP in the 2.3 Beta 1. I will test with each beta release, but it still works in 2.3 it seems so far, so that's good.
 
There is a bug on this addon:
[22-Mar-2024 03:10:42 UTC] PHP Deprecated: Optional parameter $forceIncludeVisitor declared before required parameter $userLimit is implicitly treated as a required parameter in /home/home/public_html/community/src/addons/XenConcept/LoginAsUser/XF/Repository/SessionActivity.php on line 16
This message mentions an add-on "XenConcept/LoginAsUser" - this is not mine and please contact the developer for advice https://xenforo.com/community/resources/xenconcept-login-as-user.5862/

As far as my add-on is concerned, I will test the add-on as soon as XF 2.3 is final and make adjustments if necessary.
 
This message mentions an add-on "XenConcept/LoginAsUser" - this is not mine and please contact the developer for advice https://xenforo.com/community/resources/xenconcept-login-as-user.5862/

As far as my add-on is concerned, I will test the add-on as soon as XF 2.3 is final and make adjustments if necessary.

Using dev mode got this
1712562116245.webp
  • ErrorException: [E_DEPRECATED] Creation of dynamic property SV\SignupAbuseBlocking\XF\Pub\Controller\Login::$lau_login is deprecated
  • src/XF/ControllerPlugin/AbstractPlugin.php:77
  • 8 Апр 2024 в 10:30

Трассировка стека​

#0 src/XF/ControllerPlugin/AbstractPlugin.php(77): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/findozorn...', 77)
#1 src/addons/xenMade/LAU/XF/Pub/Controller/Login.php(74): XF\ControllerPlugin\AbstractPlugin->__set('lau_login', true)
#2 src/XF/Mvc/Dispatcher.php(352): xenMade\LAU\XF\Pub\Controller\Login->actionLauin(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Login', 'Lauin', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Login), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Login), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
 
Using dev mode got this
View attachment 300984
  • ErrorException: [E_DEPRECATED] Creation of dynamic property SV\SignupAbuseBlocking\XF\Pub\Controller\Login::$lau_login is deprecated
  • src/XF/ControllerPlugin/AbstractPlugin.php:77
  • 8 Апр 2024 в 10:30

Трассировка стека​

#0 src/XF/ControllerPlugin/AbstractPlugin.php(77): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/findozorn...', 77)
#1 src/addons/xenMade/LAU/XF/Pub/Controller/Login.php(74): XF\ControllerPlugin\AbstractPlugin->__set('lau_login', true)
#2 src/XF/Mvc/Dispatcher.php(352): xenMade\LAU\XF\Pub\Controller\Login->actionLauin(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Login', 'Lauin', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Login), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Login), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
@au lait
I now have the same error in debug mode: XF 2.2.15, App Login as User 1.2.7, PHP 8.2.17
If I down grade to PHP 8.1.27 the app works in or out of debug mode. @findozor
Code:
Server error log
[LIST]
[*]ErrorException: [E_DEPRECATED] Creation of dynamic property xenMade\LAU\XF\Pub\Controller\Login::$lau_login is deprecated
[*]src/XF/ControllerPlugin/AbstractPlugin.php:77
[*]Generated by: CJ
[*]Apr 8, 2024 at 5:25 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/XF/ControllerPlugin/AbstractPlugin.php(77): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/jeepcj/pu...', 77)
#1 src/addons/xenMade/LAU/XF/Pub/Controller/Login.php(74): XF\ControllerPlugin\AbstractPlugin->__set('lau_login', true)
#2 src/XF/Mvc/Dispatcher.php(352): xenMade\LAU\XF\Pub\Controller\Login->actionLauin(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Login', 'Lauin', Object(XF\Mvc\RouteMatch), Object(xenMade\LAU\XF\Pub\Controller\Login), NULL)
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(xenMade\LAU\XF\Pub\Controller\Login), NULL)
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(22) "/community/login/lauin"
  ["referrer"] => string(50) "https://jeep-cj.com/community/forums/drivetrain.2/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["_xfToken"] => string(8) "********"
    ["username"] => string(7) "tester2"
    ["reason"] => string(0) ""
    ["_xfRequestUri"] => string(31) "/community/forums/drivetrain.2/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
Back
Top Bottom