User tests: Successful: Unsuccessful:
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
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
error
can update extensions from cli
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_installer |
it can be fixed on the plugin adding the missed $language->load('lib_joomla', JPATH_ADMINISTRATOR);
$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);
yes i'll fix it in the plugin repo https://github.com/alikon/testcom/blob/main/src/plugins/console/updatefromcli/src/CliCommand/UpdatefromcliCommand.php when back from work
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
I have not tested this item.
I have not tested this item.
I have not tested this item.
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.
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.
Note that only the error message is gone but the update works correctly before and after the PR.
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-5.4-dev
|
||
RTC
RTC
| Labels |
Added:
RTC
|
||
✅ Final test before merge with JBT
gh pr checkout 47203 and installed zitat-service.de 2.0.2 again| 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 |
Thank you very much @alikon for your contribution. Thanks to @ceford, @CSGoat0 and @ThomasFinnern for testing.
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?