Manually Removing Module Loader Packages
Aug 15, 2017 Janaki Mahapatra, Sugar
Use the following steps to remove the reference to the package in the Sugar file system:
- Navigate to the
./upload/upgrades/module/
directory. - 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:
debug_marketo-manifest.php
debug_marketo.zip
- For our example, the following files would be moved into the "disabled" directory:
- Navigate to the
./custom/Extension/application/Ext/Include/
directory. - 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.
- Use the following query to select the records in the
upgrade_history
table 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
upgrade_history
table.