Uninstall an extension on Joomla 4
Extension is uninstalled correctly
Error 'Too few arguments' passed to the function 'onExtensionBeforeUninstall' of the new plugin 'extension/finder/finder.php'
Additionally i ignore the purpose of this plugin
Labels |
Added:
?
|
btw, which extension do you try to uninstall?
Yes @infograf768 if you pass the correct parameters to the onExtensionBeforeUninstall event obviously it works. The issue at the moment occurs with whatever extension/plugin you are trying to uninstall.
However i still have not clear what's the reason of executing such a plugin to remove common words of a language from com_finder, for example when installing/uninstalling a simple system plugin that has nothing to do with com_finder.
To me this sounds a bit not logical and redundant,
Maybe i've understood the purpose looking better at the code. This is something that relates to language extensions only. IMHO it would be better to check immediately at the beginning of onExtensionAfterInstall, onExtensionBeforeUninstall, etc if the extension is of type language, instead of execute a database query. I see a large margin of improvements in this plugin.
Status | New | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-11 15:26:35 |
Closed_By | ⇒ | infograf768 |
Status | Closed | ⇒ | New |
Closed_Date | 2019-03-11 15:26:35 | ⇒ | |
Closed_By | infograf768 | ⇒ |
I reopen. The issue may be in the plugin itself. It's the only one though using this event.
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-11 17:33:42 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/24155
Looks like the code is wrong in
/libraries/src/Installer/Installer.php
line 756-761.We have
Looks like it should be
Can you test?
The plugin is used to
add or remove common words of a language from com_finder