While uninstalling a package (e.g. Sugar Connector for Marketo) in Module Loader, you notice older versions of the same package display as installed. You can uninstall these packages from Sugar®, but may experience issues where the Uninstall button does not appear next to the package or the uninstall process fails to complete. This article will cover how to manually remove module loader packages from Sugar.
You may experience one of the following issues while attempting to uninstall the older package in Module Loader:
- The Uninstall button does not appear next to the package name in Module Loader.
- Performing the uninstall for the package results in an error.
Note: These issues typically indicate that a newer version of the Module Loader package with the same file name was installed, then uninstalled, and Sugar is unable to properly complete the uninstall process for the older version of the package.
To resolve this issue, references to the previously uploaded package, as well as the entry in the database will need to be removed.
Moving Files to “disabled” Directory
Please use the following steps to remove the reference to the package in the Sugar file system:
- Navigate to the
- Create a new directory titled “disabled”.
- Move the files that are related to the specific package into the newly created “disabled” directory.
- For our example, the following files would be moved into the “disabled” directory:
Additionally, you will need to ensure the module is fully disabled in your instance.
- Navigate to the
- Create a new directory titled “Disabled” if one does not already exist.
- Open any files in the Include directory and if the file references the module you are attempting to remove, transfer the file to the Disabled directory.
- In Sugar, go to Admin > Repair > Quick Repair and Rebuild to rebuild the Extension directory with the changes you made.
Note:There may be additional files that remain as part of the module once the module is disabled. If this the case, rerunning the health check should identify any additional critical files that will need to be disabled.
Removing Records From “upgrade_history” Table
Once the appropriate files are moved to the “disabled” directory, the database reference will need to be removed.
Please use the following steps to remove the database reference:
- Use the following query to select the records in the
upgrade_historytable that match the name of the package:
SELECT * FROM upgrade_history WHERE filename LIKE '%/%';
- For our example, the query would be:
SELECT * FROM upgrade_history WHERE filename LIKE '%/debug_marketo.zip%';
- Delete the returned records from the
Navigate back to Module Loader to confirm that the packages no longer appear.