No Code Attached Yet
avatar Ruud68
Ruud68
9 Sep 2025

Application in system plugin constructor / provider is different on J6 then on J5.3.3 / J5.4

In file: ./plugins/system/actionlogs/services/provider.php
Add in line 43 (line before the return statement): dd(Factory::getApplication()->getLanguage());

In Joomla 5.3.3 Joomla\CMS\Language\Language is returned
In Joomla 5.4.0-Beta2 Joomla\CMS\Language\Language is returned

in Joomla 6.0.0.Beta2 \Null is returned

The above code is just to show the (potential) issue.

The result of this changed behavior is that the language object is NOT available in e.g. the plugins constructor.

If this is an intended change, then it should be documented

Hope this helps!

avatar Ruud68 Ruud68 - open - 9 Sep 2025
avatar Ruud68 Ruud68 - change - 9 Sep 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 9 Sep 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Sep 2025

Add a Comment

Login with GitHub to post a comment