Support

Admin Tools

#35818 Admin login broken on J4 on php8

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 Sunday, 17 October 2021 20:17 CDT

smitskamp

Hi!,

In the above combination of Joomla, php and Admin Tools the administrator login doesn't show up and an error message is shown:

"in_array(): Argument #2 ($haystack) must be of type array, string given".

By enabling/disabling the Admin Tools extension I'm pretty sure the problem lies in the extension. Probably user action logging?

So the question is: is Admin Tools 7.0.4 ready for php8?

Best,

Arie
(JUG Rotterdam)

tampe125
Akeeba Staff

Hello,

can you please set your site in Debug mode and paste here the new screenshot?

In this way I'll exactly know where the error occurs and I can investigate into it.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

smitskamp

Ciao Davide,

Ik get this output in debug mode:

Warning: foreach() argument must be of type array|object, string given inย /home/xxxxx/domains/xxxxx/public_html/plugins/system/admintools/src/Utility/BlockedRequestHandler.phpon lineย 784

For more info: see attached screenshot.

Hope this helps!

Best,
Arie

tampe125
Akeeba Staff

thank you, I think I got what's going on.

Can you please get inside the WAF Configuration and take a look at the tab Exceptions. What do you have in the section Allowed Domains?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

smitskamp

Hi Davide,

No exceptions in the WAF configuration. However, I found an Administrator Exclusive Allow IP list. Don't remember if it was there in the J3.10 situation, before upgrading. I removed that record (a single ip address) and got the login screen back again. I added two ip-addresses (non of those as my actual ip-address): login screen broken. Changed one of those to my actual ip-address: login screen back again.

I think you can find the solution in handling the 'Administrator Exclusive Allow IP list'.

Best,
Arie

tampe125
Akeeba Staff

That's a symptom, not the cause. If your IP is a whitelisted one, Admin Tools completely switches off, so you never reach the code causing the exception.

Just to be sure, can you please share a screenshot of the Exceptions tab? I have an hunch on what's going on, but I want to confirm it before applying a blind fix.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

smitskamp

Hereby!

tampe125
Akeeba Staff

Can you please remove the IP addresses from the list of domains? There you should place only domains, not IPs, those needs to be added in the fields in the section above

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
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!