Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Scott McKee 2 posts 22 karma points
    Apr 13, 2011 @ 16:14
    Scott McKee
    0

    Cannot Uninstall Package

    I am new to using Umbraco and wanted to install this Starter Kit to review it for use in an upcoming project, but now I cannot uninstall it.  I get the following error:

    Server Error in '/' Application.

    Can't delete a Document Type used as a Master Content Type. Please remove all references first!

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: Can't delete a Document Type used as a Master Content Type. Please remove all references first!

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [ArgumentException: Can't delete a Document Type used as a Master Content Type. Please remove all references first!]
       umbraco.cms.businesslogic.web.DocumentType.delete() +253
       umbraco.presentation.developer.packages.installedPackage.confirmUnInstall(Object sender, EventArgs e) +1353
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 13, 2011 @ 19:21
    Jan Skovgaard
    0

    Hi Scott

    What version of Umbraco do you have installed?

    And which one of the starter kits?

    /Jan

  • Scott McKee 2 posts 22 karma points
    Apr 13, 2011 @ 21:56
    Scott McKee
    0

    umbraco v 4.6.1 (Assembly version: 1.0.4029.25836)

    Koiak Standard Site (Starter Kit)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 13, 2011 @ 22:04
    Jan Skovgaard
    0

    Hi Scott

    Ah, sorry did not notice this post was in the "Standard website" forum.

    I just read "starter kit", which confused me for a moment there since starter kit's have been introduced with Umbraco from version 4.6.

    But this starter kit is a 3rd party package - There have been some bugs with the default starter kits that you can choose from during installation.

    Must admit I'm not sure why this packages is acting up when you try to uninstall it.

    But is there any chance that you can delete the nodes in the content section manually and then try to uninstall the package again?

    /Jan

  • Scott McKee 2 posts 22 karma points
    Apr 14, 2011 @ 14:05
    Scott McKee
    0

    I have deleted the nodes and emptied the Recycle Bin, but that did not enable me to uninstall the package.

  • Chris Koiak 700 posts 2626 karma points
    Apr 14, 2011 @ 16:28
    Chris Koiak
    0

    Hi Scott,

    All doc types used by this package should be grouped under a single containing doc type. It looks like Umbraco is having issues removing these (this package doesn't try to anything extra on uninstall).

    Try deleting all the associated doc types and then running the uninstaller again.

    Chris

  • Lee Rosner 1 post 21 karma points
    Sep 24, 2011 @ 18:15
    Lee Rosner
    0

    Having exact same uninstall issue. Cannot uninstall the starter kit. I've tried all suggestions above.

    Any other thoughts?

     

  • Simon Dexter 1 post 21 karma points
    Nov 04, 2011 @ 12:34
    Simon Dexter
    0

    Had the  same problem. Did the following and I managed to uninstall:-

    1. Go into "Settings" section and select "Document Types"

    2. Delete all document types at the same level as "Content Master" but NOT "Content Master"

    3. Drill down into Base > Content Master

    4. Delete "Homepage" and "Standard" document types

    5. Delete "Content Master" document type

    6. Delete "Base" document type

    7. Try the uninstall again

  • Sean 2 posts 22 karma points
    Nov 08, 2011 @ 22:02
    Sean
    0

    Thanks Simon! That worked. 

  • Sean 2 posts 22 karma points
    Nov 08, 2011 @ 22:09
    Sean
    0

    As a further note, i had actually incorrectly installed 2 versions of the Koiak Standard Site (Starter Kit).

    After following Simons instructions above, right-click the "Developer" folder and Reload the nodes. 

  • Martin Skov Nielsen 22 posts 47 karma points
    Feb 15, 2013 @ 20:17
    Martin Skov Nielsen
    0

    Okay - I have a simular problem with this package. But my problem is also that I can not remove any of the document types! I get an error message:

    Error handling action

    Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery

     

    Can anyone please help me?!?

  • Martin Skov Nielsen 22 posts 47 karma points
    Feb 22, 2013 @ 09:22
    Martin Skov Nielsen
    0

    OK - so here's what I found out...

    It seems that a bug of some kind was causing me to be unable to empty the recycle bin with 67 items... The path fixup package didn't help.

    However a sql script emptying the recycle bin fixed all my problems, and the package was uninstalled without any problems... go figure :-S

     

    Anyway here's the script: (http://www.blogfodder.co.uk/2011/5/26/mass-delete-over-1k-nodes-from-recycle-bin-in-47)

    -- Uncomment below to verify the number of nodes returned is the 
    -- same as the number of nodes that is in the Recycle Bin
    -- select * from umbracoNode where path like '%-20%' and id!=-20
    
    -- Delete all 'related' nodes and table contents...
    delete from cmsPreviewXml where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    delete from cmsContentVersion where ContentId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    delete from cmsContent where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    delete from cmsContentXML where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    delete from cmsDocument where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    delete from cmsPropertyData where contentNodeId in (select id from umbracoNode where path like '%-20%' and id!=-20)
    -- delete the XML nodes....
    delete from umbracoNode where path like '%-20%' and id!=-20
  • Graeme 3 posts 23 karma points
    Apr 19, 2014 @ 10:26
    Graeme
    0

    I have just encountered the same problem. I managed to uninstall by following the steps 1-7 above but then noticed all my nodes where in the recycle bin. Any ideas what I did wrong and how I can get it back without rebuilding the whole site?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft