RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
22 Feb 2026

Summary of Changes

allow extension update from cli

User state is session-based storage that only works in web context (administrator)

In CLI context setting user state fail

Testing Instructions

install this console plugin
plg_console_updatefromcli.zip
it will add a new cli command extension:update
have an extensions for which there is an update and the run

php cli/joomla.php extension:update --eid=the_extension_id

Actual result BEFORE applying this Pull Request

error

Expected result AFTER applying this Pull Request

can update extensions from cli

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 22 Feb 2026
avatar alikon alikon - change - 22 Feb 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2026
Category Administration com_installer
avatar ceford
ceford - comment - 10 Mar 2026

Finding an extension for which there is an update available is a bit of a problem. I installed one of my own and then used phpMyAdmin to change its version number in the manifest cache of the #__extensions table. I could then use that method to update from either the backend or cli as often as needed.

The patch appears to work as required. However, I have two other extensions installed that are not set up properly. In the backend I get explicit warning messages telling me which extensions are causing the problem. In the cli I get a text key string. Does this need fixing or is that a separate issue?

image
avatar alikon
alikon - comment - 10 Mar 2026

it can be fixed on the plugin adding the missed $language->load('lib_joomla', JPATH_ADMINISTRATOR);

avatar ceford
ceford - comment - 10 Mar 2026

$language->load('lib_joomla', JPATH_ADMINISTRATOR);

I needed to move this block of code to line 70 in UpdatefromcliCommand.php to get it to report which updates were triggering warnings.

            // Load com_installer's language
            $language = $this->getApplication()->getLanguage();
            $language->load('lib_joomla', JPATH_ADMINISTRATOR);
            $language->load('com_installer', JPATH_ADMINISTRATOR, 'en-GB', false, true);
            $language->load('com_installer', JPATH_ADMINISTRATOR, null, true);

avatar ThomasFinnern ThomasFinnern - test_item - 29 Mar 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 29 Mar 2026

I have tested this item ✅ successfully on 4c49e07

Without patch i got an error message and the update was successful
With patch i got no error message and the update was successful


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0 CSGoat0 - test_item - 16 May 2026 - Not tested
avatar CSGoat0
CSGoat0 - comment - 16 May 2026

I have not tested this item.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0
CSGoat0 - comment - 16 May 2026

I have not tested this item.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0
CSGoat0 - comment - 16 May 2026

I have not tested this item.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0 CSGoat0 - test_item - 16 May 2026 - Tested successfully
avatar CSGoat0
CSGoat0 - comment - 16 May 2026

I have tested this item ✅ successfully on 4c49e07

Without patch i got an error message and the update was successful.
With patch i got no error message and the update was successful.
Same result as @ThomasFinnern.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0
CSGoat0 - comment - 16 May 2026

I have tested this item ✅ successfully on 4c49e07

Without patch i got an error message and the update was successful.
With patch i got no error message and the update was successful.
Same result as @ThomasFinnern.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar CSGoat0
CSGoat0 - comment - 16 May 2026

Note that only the error message is gone but the update works correctly before and after the PR.

avatar richard67 richard67 - change - 16 May 2026
Status Pending Ready to Commit
Labels Added: bug PR-5.4-dev
avatar richard67
richard67 - comment - 16 May 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar richard67
richard67 - comment - 16 May 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47203.

avatar muhme muhme - change - 26 May 2026
Labels Added: RTC
avatar muhme
muhme - comment - 26 May 2026

✅ Final test before merge with JBT

  • Installed PLG_CONSOLE_UPDATEFROMCLI and zitat-service.de 2.0.2
  • Seen module is updated to 2.0.3 by cli, but also red ERROR messages are printed
  • Uninstalled module, applied PR with gh pr checkout 47203 and installed zitat-service.de 2.0.2 again
  • Module is updated w/o red ERROR messages
avatar muhme muhme - change - 26 May 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-05-26 19:01:13
Closed_By muhme
avatar muhme muhme - close - 26 May 2026
avatar muhme muhme - merge - 26 May 2026
avatar muhme
muhme - comment - 26 May 2026

Thank you very much @alikon for your contribution. Thanks to @ceford, @CSGoat0 and @ThomasFinnern for testing.

Add a Comment

Login with GitHub to post a comment