Support

Admin Tools

#39117 Creation of dynamic property Joomla\CMS\Application\AdministratorApplication::$registeredurlparams is deprecated

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
4.3.2
PHP version
8.2.7
Admin Tools version
7.3.1

Latest post by nicholas on Monday, 19 June 2023 00:41 CDT

aetherwizard

The following warning appears in the Administration area of Joomla 4 backend:

Creation of dynamic property Joomla\CMS\Application\AdministratorApplication::$registeredurlparams is deprecated

This may be a PHP issue that needs to be addressed as newer PHP versions are forced on us.

If there is a quick fix, please let me know.

Thanks,

David T.

nicholas
Akeeba Staff
Manager

PHP 8.2 deprecated the creation of dynamic object properties with a removal target of PHP 9.0.

Here's the thing. Creating a dynamic object property only raises a deprecated notice, the lowest level of PHP message.These are only meant to be seen on development machines where display of all messages is turned on. If you are seeing this on a production server it means that you are doing something wrong with your site's and your PHP configuration.

Go to your site's Global Configuration and set Error Reporting to None. This prevents anything going through Joomla, as well as Joomla itself, from displaying PHP messages.

Moreover, ask your host how you can set display_errors = Off to the PHP configuration. Some hosts have a configuration interface for PHP in their control panel, some let you specify a .user.ini in the parent folder of your web root, others have other methods. This will prevent anything running outside of Joomla from displaying PHP messages.

Also note that these deprecated messages are known to Joomla. They will be adding the #[\AllowDynamicProperties] attribute to core objects which allow dynamic properties (the application object, the view object, ...) and eventually replace CMSObject with instances of Joomla\Registry\Registry objects.

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!

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!