Wondering if anyone else has had this problem. I have a site that is flat out refusing to delete templates. Whenever I ask it to delete one it plays the client side animation of deleting but just sits there refusing to budge. It is not that there is another template with the same name or alias as that was the first thing I checked, I am just not sure where to go from here as I cant get it to do the same locally for easy debuging.
Oddly this sorted itself out after deleting some old document types that used to be (but have not been for a while) linked to the origional templates... odd... but fixed now
It was 4.5.2 and the database would not have been played with directly (Its a live site), Im not sure why it happened and I can't get it to break again now ¬_¬
You can't delete a template if it's used in a node. Even if you give the node a new template the template is still linked to the node in the version history. By deleting the documenttype you probably also deleted the related nodes and version history and that's why you can remove the template again. If deleting fails in 4.6+ you should get a message.
Refusing to delete templates
Wondering if anyone else has had this problem. I have a site that is flat out refusing to delete templates. Whenever I ask it to delete one it plays the client side animation of deleting but just sits there refusing to budge. It is not that there is another template with the same name or alias as that was the first thing I checked, I am just not sure where to go from here as I cant get it to do the same locally for easy debuging.
Suggestions?
Oddly this sorted itself out after deleting some old document types that used to be (but have not been for a while) linked to the origional templates... odd... but fixed now
Hi Samuel
What version of Umbraco did this happen on? And did you touc the database directly at any point?
/Jan
It was 4.5.2 and the database would not have been played with directly (Its a live site), Im not sure why it happened and I can't get it to break again now ¬_¬
Hi Samuel
Hmm, weird...but sounds like a peridoic error and good to hear you got it solved :-)
/Jan
It's probably related to this workitem: http://umbraco.codeplex.com/workitem/29306.
You can't delete a template if it's used in a node. Even if you give the node a new template the template is still linked to the node in the version history. By deleting the documenttype you probably also deleted the related nodes and version history and that's why you can remove the template again. If deleting fails in 4.6+ you should get a message.
Jeroen
is working on a reply...