Support

Admin Tools

#35867 htmlspecialchars(): Argument #1 ($string) must be of type string, array given

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

myaviation

Hi when I go into admin tools and click on OPTIONS

I get

 

An error has occurred.

htmlspecialchars(): Argument #1 ($string) must be of type string, array given

 

 

nicholas
Akeeba Staff
Manager

The Options page of any Joomla extension is rendered by com_config, a core Joomla component. All we provide is an XML file without any executable code. Therefore the error you are receiving is coming from core Joomla code outside of our control.

FYI, you will see things like that happening with PHP 8. Unlike PHP 5 and 7, PHP 8 is far stricter when it comes to variable type compatibility. Joomla has a code base with a long history dating back to the early days of PHP 4 some 20 years ago. While people have tried to fix type consistency issues over the years, the extent of the code base and practical constraints make it impossible to do a full code review. Some issues will still be present and need to be fixed. Well, since you bumped on such a problem you and I can help solve it :)

Please go to your Global Configuration and set Error Reporting to Development and Debug Site to Yes. Trigger the same issue. You will be given a more detailed error message which includes two additional and very important things: the file and line this error occurred and the debug backtrace. Please take a screenshot of both and attach it to your next reply. I can try to see if there is a way to work around the core Joomla issue on our side or try to have it fixed in Joomla itself.

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!