Support

Admin Tools

#40486 Failed login error

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
Joomla! 4.4.3 Stable
PHP version
8.1.22
Admin Tools version
7.4.9

Latest post by Miriam Richter on Monday, 25 March 2024 12:13 CDT

Miriam Richter

Hi Admin-Tool folks,

we updated to AdminTools 7.4.9 and we now have an issue with failed login attempts. The expected behaviour is to be redirected to the login form again along with a hint that the authetication failed.

This no longer happens, as a php error breaks the execution of the whole application. In order to replicate the issue, you have to use incorrect/invalid credentials.

 

0 array_map(): Argument #2 ($array) must be of type array, string given

 

The error seems to be related to an insufficent check in plugins/system/admintools/src/Utility/BlockedRequestHandler.php on line 682 which has been added in the latest 7.4.9 release.

By temporary disabling this latest change, the site behaves as expected and redirects the user to the login page again.

 

 

nicholas
Akeeba Staff
Manager

I could not reproduce your issue, but I know why I can't reproduce it, why it happens to you, and how to fix it.

This code you mentioned is called every time there is a request being evaluated for blocking. It's not something added to the failed login attempts.

Moreover, the actual problem here is that the "Never block these IPs" values are not in the right format in your installation. 

The solution should be fairly simple. Go to Admin Tools, Web Application Firewall, Configure WAF and click on Save & Close.

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!

Miriam Richter

Thank you for the fast reply.

I followed your description and it works as expected.

Thanks

Ralf

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!