No Code Attached Yet
avatar boddunan
boddunan
25 Oct 2021

Steps to reproduce the issue

Create a Joomla package that may have one or more component/modules/plugins
Install the package
Uninstall the package

Expected result

Package along with its component, modules, and plugins is uninstalled

Actual result

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.

System information (as much as possible)

Joomla 3.10

Additional comments

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>
avatar boddunan boddunan - open - 25 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 25 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Oct 2021
avatar joomdonation
joomdonation - comment - 29 Oct 2021

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):

<files folder="packages">	   
   <file type="module" id="mod_pf_forms" client="site">mod_pf_forms.zip</file>
   <file type="module" id="mod_pf_form" client="site">mod_pf_form.zip</file>	   
   <file type="plugin" id="pmform" group="content">plug_content_pmform.zip</file>   
   <file type="plugin" id="paymentform" group="installer">plug_installer_paymentform.zip</file>   
   <file type="plugin" id="invoice" group="pmform">plug_pmform_invoice.zip</file>   
   <file type="plugin" id="account" group="pmform">plug_pmform_account.zip</file>
   <file type="plugin" id="script" group="pmform">plug_pmform_script.zip</file>
   <file type="plugin" id="ebvoucher" group="pmform">plug_pmform_ebvoucher.zip</file>
   <file type="plugin" id="acymailing" group="pmform">plug_pmform_acymailing.zip</file>
   <file type="plugin" id="limitpayments" group="pmform">plug_pmform_limitpayments.zip</file>
   <file type="library" id="omnipay">lib_omnipay.zip</file>
   <file type="library" id="osl">lib_osl.zip</file>
   <file type="component" id="com_pmform">com_pmform.zip</file>
</files>

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.

avatar joomdonation joomdonation - change - 29 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-29 04:41:55
Closed_By joomdonation
avatar joomdonation joomdonation - close - 29 Oct 2021

Add a Comment

Login with GitHub to post a comment