Media no longer listing after accidentally hitting delete on the Media Recycle Bin
I was quickly removing individual items from the media recycle bin, when I accidentally clicked the recycle bin itself and hit delete. After doing that, my media section will not list at all. I only see the media parent folder and nothing below it, though there should be numerous files and folders listing underneath it.
While trying to figure out what happened, I noticed /umbraco/webservices/TreeDataService.ashx was returning a 500. Below is the stack trace from that error:
Server Error in '/' Application.
No node exists with id '-21'
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: No node exists with id '-21'
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.
I think you will need to have a look in the database to get this fixed...is there any chance that you have a backup, which you could perhaps roll back to?
Media no longer listing after accidentally hitting delete on the Media Recycle Bin
I was quickly removing individual items from the media recycle bin, when I accidentally clicked the recycle bin itself and hit delete. After doing that, my media section will not list at all. I only see the media parent folder and nothing below it, though there should be numerous files and folders listing underneath it.
While trying to figure out what happened, I noticed /umbraco/webservices/TreeDataService.ashx was returning a 500. Below is the stack trace from that error:
Server Error in '/' Application.
No node exists with id '-21'
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: No node exists with id '-21'
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Does anybody have an idea as to what I've done and how to undo it?
Hi Stoneward
What version of Umbraco did this happen on?
I think you will need to have a look in the database to get this fixed...is there any chance that you have a backup, which you could perhaps roll back to?
/Jan
I found the solution in an old thread, but this still seems like something that the user should not be able to mistakenly do.
Here is the thread:
http://our.umbraco.org/forum/core/general/18493-Media-section-broke-No-node-exists-with-id-%27-21%27
is working on a reply...