Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 631 posts 1018 karma points
    Aug 24, 2012 @ 07:08
    Dan Evans
    0

    Can't access media recycle bin JSON error

    When trying to access the media recycle bin the request times out with an internal server error. Using Firebug I can see this is:

    /umbraco/webservices/TreeDataService.ashx?rnd=7c9aacadd87448d0ab6baf64e0ec7808&id=-21&treeType=mediaRecycleBin&contextMenu=true&isDialog=false&rnd2=76.7

    Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

    I have amended  <jsonSerialization maxJsonLength="2147483647" /> in web.config but it doesn't have any effect. It appears that this line does not actually work. 

    Any ideas how I can fix this? Or manually clear out some older items?

    Thank

    Dan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 24, 2012 @ 21:56
    Jan Skovgaard
    0

    Hi Dan

    What version of Umbraco are you seeing this on? And do you have any idea how many nodes are in the recycle bin?

    /Jan

  • Dan Evans 631 posts 1018 karma points
    Aug 28, 2012 @ 09:24
    Dan Evans
    0

    Version is 4.7.2

    I have no idea how many items are in the bin. Is there a way to find out?

  • Dan Evans 631 posts 1018 karma points
    Aug 28, 2012 @ 09:42
    Dan Evans
    0

    If the path to the recycle bin is -21 then there are 6982 items in the UmbracoNode table with that path.

  • Dan Evans 631 posts 1018 karma points
    Sep 06, 2012 @ 11:57
    Dan Evans
    0

    Anyone have any ideas about this? Or how I can just empty the recycle bin?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Sep 06, 2012 @ 16:44
    Tom Fulton
    0

    Hi Dan,

    I'm not sure why adjusting that setting didn't fix the issue, however there is a way to manually delete the nodes from the recycle bin via the database.  This is not supported though, so make sure to backup your database before attempting.

    http://www.blogfodder.co.uk/2011/5/26/mass-delete-over-1k-nodes-from-recycle-bin-in-47

    -Tom

  • Dan Evans 631 posts 1018 karma points
    Sep 07, 2012 @ 10:21
    Dan Evans
    0

    So is this for the content recycle bin or media recycle bin? It's the media recycle bin I need to empty. Also, will it delete the actual files as well?

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Sep 07, 2012 @ 18:19
    Tom Fulton
    0

    Ah, sorry - this is for the Content recycle bin.  But to make it work for media, just change the references to "-20" (ID of the Content Recycle Bin) to "-21" (ID of the Media Recycle Bin).

    This won't delete the actual files unfortunately.  You would probably need to script this somehow.

    On a side note, wondering if you are able to manually delete items from the Recycle Bin one by one instead of emptying the whole thing?  Not ideal but just curious if that works :)

     

Please Sign in or register to post replies

Write your reply to:

Draft