Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to uninstall a package #35898

Closed
boddunan opened this issue Oct 25, 2021 · 1 comment
Closed

Unable to uninstall a package #35898

boddunan opened this issue Oct 25, 2021 · 1 comment

Comments

@boddunan
Copy link

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>
@joomdonation
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants