Copied to clipboard

Flag this post as spam?

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


  • Bjørn Fridal 274 posts 784 karma points
    Jun 21, 2011 @ 13:41
    Bjørn Fridal
    3

    Recreate the recycle bin after you have accidentally deleted it.

    I thought I would share this little, but handy tip.

    I am currently transfering a lot of media files from an old Umbraco installation into a new one. This involves a lot of testing and me hammering away in the Media section. In the midst of my hammering I accidentally right clicked the recycle bin instead of a media item and clicked delete. Now normally the recycle bin does not have the delete option for obvious reason, but I am guessing that things just went to fast and the tree did not have time to update since the last action. Anyways I deleted the Recycle bin. That is.. not so good. All items disappear from the media section since the TreeDataService throws an exception early on, now that the Recycle bin is deleted from the database.

    Luckily all you have to do to recreate the Recycle bin is go to the umbracoNode table and add a new node. You can copy the data from another installation, look for a node with the id -21. On a Umbraco 4.7 installation I used this:

    id trashed parentID nodeUser level path sortOrder uniqueID text nodeObjectType createDate
    -21 0 -1 0 0 -1,-21 0 BF7C7CBC-952F-4518-97A2-69E9C7B33842 Recycle Bin CF3D8E34-1C1C-41E9-AE56-878B57B32113 2011-01-17 15:24:05.373
Please Sign in or register to post replies

Write your reply to:

Draft