XenConcept
Well-known member
XenConcept updated [XenConcept] Login As User with a new update entry:
New release 2.0.4
Read the rest of this update entry...
New release 2.0.4
Read the rest of this update entry...
@XenConcept i get this error with xenforo 2.0.7 and php 7.2:
ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable in src/addons/XenConcept/LoginAsUser/Service/LoginAsUser/Login.php at line 50
- XF::handlePhpError()
- count() in src/addons/XenConcept/LoginAsUser/Service/LoginAsUser/Login.php at line 50
- XenConcept\LoginAsUser\Service\LoginAsUser\Login->preLogin() in src/addons/XenConcept/LoginAsUser/XF/Pub/Controller/Misc.php at line 26
- XenConcept\LoginAsUser\XF\Pub\Controller\Misc->setupLoginAsUser() in src/addons/XenConcept/LoginAsUser/XF/Pub/Controller/Misc.php at line 61
- XenConcept\LoginAsUser\XF\Pub\Controller\Misc->actionLoginAsUser() in src/XF/Mvc/Dispatcher.php at line 249
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
- XF\App->run() in src/XF.php at line 328
- XF::runApp() in index.php at line 13
Hello,
The error is due to the PHP version. I had the case with a our client
You will fix? Because i can't downgrade and 7.2 is php recommended by xenforo.
Not sure why this wasn't fixed, but i ran into this problem too so here is a quick fix.
src/addons/XenConcept/LoginAsUser/Service/LoginAsUser/Login.php
Code:public function preLogin(&$errors = []) { change to public function preLogin(&$errors) { $errors = [];
return count($errors) == 0;
return $errors == 0;
Ah thanks, i fixed by myself days ago changing line 50 from
toCode:return count($errors) == 0;
Code:return $errors == 0;
I don't know if its correct but works, it's a shame that @XenConcept don't fix his paid addons.
Fix of the following error :ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable in src/addons/XenConcept/LoginAsUser/Service/LoginAsUser/Login.php at line 50
XenConcept updated [XenConcept] Login As User with a new update entry:
New Release 2.0.5
Read the rest of this update entry...
One problem I just found with this, is that a moderator with this permission can login to an admins account, then they have permissions that the admin has to do things they do not otherwise have permission to do.
I created a super mod, without hard delete permission, used this to login to my admin account, then I could hard delete as an admin.
A moderator should not be able to test super admin permissions.
Right now... no. That does not change the ACP access though... they need your password to access super admin ACP access.Can it be restricted to super admin?
I'm not seeing any permissions for the addon
After installing I do not see the login as user button in their profile. (Do not display the button (Login As User) is unticked in options)
Should there be a permission? (I'm not seeing any permissions for the addon)
General moderator permissions
We use essential cookies to make this site work, and optional cookies to enhance your experience.