Results 1 to 6 of 6

Thread: Can't uninstall module. No button

  1. #1
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Can't uninstall module. No button

    Sugar 5.0

    I'm having a weird issue that keeps popping up. On a fresh install I'll install one or two modules and then go back to the module loader page. The buttons to uninstall or disable a module have disappeared so that there is no way to uninstall except manually through the file system and database.

    Any ideas?

    Thanks

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Can't uninstall module. No button

    Uninstallable is set to true:
    'is_uninstallable' => true,

    I think this started when I upgraded to 5.0.0b

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Can't uninstall module. No button

    I traced it back to this function in smarty/templates/.....PackageManagerScripts.tpl.php. It is coming across as uninstallable so I checked for the manifest in the cache and the install files are not there. For some reason they are now being removed by the install process as of 5.0.0b. So I changed == 0 to 1 and I get this message when I try to uninstall:

    Error: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file 'UNINSTALLABLE'


    PackageManagerGrid.prototype.renderUninstallButton = function(file){
    if(file.indexOf(\'errors_\') == 0){
    var output = "<input type=\'button\' class=\'button\' value=\'Errors\' onClick=\'javascript:alert(\\""+file.substring(7)+ "\\");\'>";
    }else if(file.indexOf(\'UNINSTALLABLE\') == 0){
    var output = \'\';
    }else{
    var output = \'<form action="index.php?module=Administration&view=modul e&action=UpgradeWizard_prepare" method="post">\';
    output += \'<input type=submit class=\\\'button\\\' name="btn_mode" onclick="this.form.mode.value=\\\'Uninstall\\\';th is.form.submit();" value="'; echo $this->_tpl_vars['MOD']['LBL_UW_UNINSTALL']; echo '" />\';
    output += \'<input type=hidden name="install_file" value="\'+file+\'" />\';
    output += \'<input type=hidden name="mode"/>\';
    output += \'</form>\';
    }
    return output;
    }

  4. #4
    markgill is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    23

    Default Re: Can't uninstall module. No button

    For some modules, you may be able to do what I did--reload the module. See this thread:

    http://www.sugarcrm.com/forums/showthread.php?t=30929

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Can't uninstall module. No button

    Thanks. I gave that a try earlier though with no luck. I just had to delete from upgrade_history for the right module and delete all files that were copied in the modules, custom, and metadata folder. It works but is a pain to do.

  6. #6
    JVWay is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Corvallis, Oregon
    Posts
    452

    Default Re: Can't uninstall module. No button

    markgill, thanks,
    That worked for me. Reinstalled and was able to uninstall.
    Jerry Way
    Business Process Administrator

    Sugar 6.1.4 Professional
    (Testing 6.1.2)
    LAMP on Centos 5
    PHP 5
    MySQL 5
    Apache 2.2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Replies: 0
    Last Post: 2007-07-03, 10:12 AM
  3. Module Installer : Uninstall except tables
    By ruchida in forum Feature Requests
    Replies: 5
    Last Post: 2007-06-11, 05:10 AM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •