Create a Joomla package that may have one or more component/modules/plugins
Install the package
Uninstall the package
Package along with its component, modules, and plugins is uninstalled
Only package is removed and shown below error. All other components/modules/plugins remain.
Trying to uninstall unknown extension from package. This extension may have already been removed earlier.
Joomla 3.10
Sample package XML:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<extension method="upgrade" type="package" version="3.6">
<name>My Package</name>
<author>Tester</author>
<creationDate>2021-Oct-21</creationDate>
<packagename>packageid</packagename>
<version>1.0.0</version>
<url>https://test.com/</url>
<packager>Tester</packager>
<packagerurl>https://test.com/</packagerurl>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description></description>
<scriptfile>pkg_script.php</scriptfile>
<files folder="packages">
<file id="packageid" type="component">com_mycomponent.zip</file>
<file client="site" id="packageid" type="module">mod_mymodule.zip</file>
<file client="site" id="packageid" type="plugin" group="content">plg_content_myplugin.zip</file>
</files>
</extension>
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-29 04:41:55 |
Closed_By | ⇒ | joomdonation |
Actually, we misunderstand (me included) the meaning of id attribute in each file element. It is not id of the package, but should be id of the extension itself. It should contains the value which is stored in element field in #__extensions table when you install the extension. Below is one example (tested and worked):
That should be good for you to make a right package. I'm closing this issue for now, feel free to re-open if you still have more questions.