More in this section

Forums / General Discussions / Impossible to uninstall module

Impossible to uninstall module

6 posts, 0 answered
  1. Karen
    Karen avatar
    22 posts
    Registered:
    04 Aug 2010
    06 Jun 2011
    Link to this post
    Hello

    I am facing very strange behavior, I could not make the custom module work on my SF 4.1 website, so however I removed all references to that module project, removed it from the backend UI and the SystemConfing has no information about it anymore, restarted the application, rebuilded it, but it is still visible under content menu, also another issue, when I try to edit any page I got the following error

    Could not find the specified key "PersonApplicationsUploadTitle" or class id "PersonsResources".

    The Persons module is totally removed from my website, why do I still get error relating to it?
    Thanks
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    06 Jun 2011
    Link to this post
    Hello Karen,

    I will get back to you in the support ticket, regarding your modules. However if you want to remove a custom module from your website, please check the following forum thread.

    Greetings,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Lev Rosenblit
    Lev Rosenblit avatar
    37 posts
    Registered:
    14 May 2008
    06 Jun 2011
    Link to this post
    Hi, To completely uninstall a module - use the following:

    1) delete the lines that contain the MODULE_NAME from:
    SystemConfig.config
    ContentViewConfig.config
    WorkflowConfig.config
    SecurityConfig.config

    2) close cassini (or recycle the pool if you have a dev server).

    3) open a new query window in Sql Server Manager and run the following script:

    DECLARE @TempIds TABLE ( id uniqueidentifier )
    INSERT INTO @TempIds (id)
    SELECT id FROM sf_page_node WHERE url_name_ = N'MODULE_NAME'
    DELETE FROM sf_page_node_attrbutes WHERE id in (SELECT id FROM @TempIds)
    DELETE FROM sf_page_node_sf_permissions WHERE id in (SELECT id FROM @TempIds)
    DELETE FROM sf_pg_nd_prmssnst_bjct_ttl_rs_ WHERE id in (SELECT id FROM @TempIds)
    DELETE FROM sf_pg_nd_sf_prmssns_nhrtnc_map WHERE id in (SELECT id FROM @TempIds)
    DELETE FROM sf_pg_nd_spprtd_prmission_sets WHERE id in (SELECT id FROM @TempIds)
    DELETE FROM sf_page_node WHERE id in (SELECT id FROM @TempIds)


    4) now rebuild the SitefinityWebApp and run it.

    5) the module is gone.

    A Tip:
    If you want only to reinstall the module dont delete the MODULE_NAME from SystemConfig.config



    In most cases for custom modules this should work.

    All the best,
    Lev Rosenblit
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    07 Jun 2011
    Link to this post
    Hi,

    Thank you Lev for sharing details about the procedure.

    Please Karen, contact me again in this thread if you find any difficulties deleting a module.

    Regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Lev Rosenblit
    Lev Rosenblit avatar
    37 posts
    Registered:
    14 May 2008
    08 Jun 2011
    Link to this post
    Hi,
    I've updated the script: I forgot to delete from sf_page_node itself.

    Lev Rosenblit
  6. Cii
    Cii avatar
    10 posts
    Registered:
    13 Jan 2011
    04 Jul 2011
    Link to this post
    Hi,

    I am having a similar problem and performing uninstall using the SQL code you have provided...

    But there is something I do not understand.. Now, lets call our module "Regulations"..

    Even If I run the SQL script you have provided, there are some table which stand still.. their names are:

    "custom_regulations"
    "custom_regulations_category"
    "custom_regulations_colors"
    "custom_regulations_sf_commnt"
    "custom_regulations_tag"

    there are also these tables (which also stand still) whose names are a bit confusing:
    cstm_rgltns_sf_prmssns_nhrtnc_
    cstm_rgulations_sf_permissions

    it looks asif sitefinity created some tables using a shortened version of the name of the module....

    summary:
    - when performing a regular uninstallation, sitefinity is not dropping these tables..
    - the SQL script you have provided is also not dropping these table..

    1. should I assume that "It is OK" if these tables are not dropped even if the module related to them is deleted???
    2. IS it OK if I drop them manually??

    Thanks,
    Cihan

6 posts, 0 answered