Rolling back corrupt template - Sitefinity 8.2

Posted by Community Admin on 04-Aug-2018 20:50

Rolling back corrupt template - Sitefinity 8.2

All Replies

Posted by Community Admin on 08-Feb-2016 00:00

I made an update to the navigation control on a template that is used by about 75% of the pages on my site, and in doing so, I'm unable to make any changes, delete the control from the page, or find an option to roll back the template to a previous version.  

What are my options?  Is it possible to recover to an earlier version of a template, or remove the control in question from my page on the backend (via DB)?  

I've tried accessing the page through a variety of different browsers, and nothing seems to allow me to edit any of the layout options, when trying to edit the template.  

Posted by Community Admin on 11-Feb-2016 00:00


The most common cause for such a problem is a JavaScript error. Since the edit wrappers around the layout controls and around the widgets are created using JavaScript an error would stop the code from executing and thus prevent the widgets from being editable.

One of the most common causes for such JavaScript errors is referencing jQuery explicitly in a template. For example the following line would cause such errors:

<script src="//"></script>

If required by the specific widget you can refer to the following documentation article for the proper way to add jQuery as a dependency to your widgets:'s-built-in-jquery-resource

Please inspect the template of the modified widget and see if that is the case. If not you can refer to the following documentation about removing widgets from a page programmatically:

To make it work for page templates instead of pages use the GetTemplates and EditTemplate methods of the page templates.

Velizar Bishurov
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items

Posted by Community Admin on 11-Feb-2016 00:00

Thank for the info.  I was able to regain control over the template by going into the widget menu and deleting the one I had created.  It was a little shocking to see how easy it was for a corrupt control to bring down the entire site for the most part.  I'll be careful with custom controls in the future, especially those added to the templates.  

This thread is closed