Support

Admin Tools

#32710 Unable to disable LoginGuard

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Wednesday, 22 April 2020 17:17 CDT

MajorFusion
I'm trying to update an extension that requires me to drop the version of my PHP to 5.6. When I do this, LoginGuard stops working and causes the website to crash. I thought I could get around this by temporarily disabling the plugin, however, when I go to disable the LoginGuard plugin, the site crashes with a "0 - Call to a member function get() on null" error. I was able to get back into my site by going into the database and re-enabling the plugin.

I thought maybe I could turn off Two Factor Auth for my user, but that doesn't do anything either. . . .

So, I can't update the original extension and I'm terrified to mess with LoginGuard . . . I thought about just uninstalling LoginGuard, but if just disabling it causes such chaos, what will that do? I also have Akeeba Admin Tools installed, not sure if that has anything to do with it.

nicholas
Akeeba Staff
Manager
Akeeba LoginGuard requires PHP 7.1 to work, as documented on its download page. In fact it checks your PHP version before installation, preventing you from installing and using it on sites with older versions of PHP where it'd break (it actually uses Joomla's pre-installation script system to check the PHP version and signal that the installation needs to stop if the PHP version is too old). If you drop your PHP version to 5.6 after installation it no longer works. Since it runs on every page of your site it will break your site. That's normal and expected.

Regarding what you did, you said "the plugin" but based on the error message you got you have either disabled just the component or just the user plugin. That's not enough or recommended for that matter. You need to first read the documentation on how Akeeba LoginGuard works.

As you now understand, you need to unpublish both the system plugin (System - Akeeba LoginGuard protection) and the user plugin (User - Akeeba LoginGuard protection) BUT NOT the component. When you have upgraded PHP back to 7.3 you can re-enable these two plugins.

Note: on the Plugins page you can search for "LoginGuard", select both system and user results and click the Unpublish button in the toolbar. This disables both plugins at once, making sure you won't get any accidental problems if you try disabling them one at a time (not that you normally do, but better be safe than sorry).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!