+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / The Template (sometimes is template content) is gone unreasonable

The Template (sometimes is template content) is gone unreasonable

2 posts, 0 answered
  1. liu
    liu avatar
    6 posts
    Registered:
    19 Apr 2011
    30 Aug 2011
    Link to this post
    Hi,

             I've encountered a terrible bug while using the Sitefinity CMS(3.7, SP4),  when I login the SF---->Pages---->Templates--------->Upload master page to generate template,   this process is OK, and then I edit this template : drag some Generic content and other controls into this Template, then click  save,  this process is also OK.  So in the next, I create many pages using this template,   and now all the steps goes well , but after some hours [usually in 24 hours] , some terrible things happens: when click the new page I created, it get a message "This page is under construction" ,when edit this page ,we find that the template is lost in the SF---->Pages---->Templates, but I check the  App_Master folder, the master page still exists,  this means all the work we done is gone, waste a lot of time, and can not find any error logs, >_<, a terrible thing for me, and our customer is also worried about this terrible thing!

        Also sometimes when we edit a page ---->Properties---->More Options ----->Anonymous access, change Allow to Deny, and it cannot have any effect, and we can change this issue as following ways: open the sitefinity database(we choose mysql), open the table "sf_cmspageprops", and using sql to update the fields "DenyAnonyous" , and the remote to Client's Server(Windows Server 2008 R2), Open the IIS (the IIS version is 7.5), in the Features Views---->Output Caching,reset it and this issue can be resolved.

    But how to detect why the content of template losing, this is terrible for us, I think the rootcause is  maybe that the SF have some functions that recovery the data to original when the system encounter some unknown errors, Hmmmm, Hope to get some help.  [Also in these days, I have done some research for the upgrade from 3.7 to 4.2, and find this two versions' SF is very different, and the upgrade steps is really not friendly [the latest upgrade tool's version is 0.7],is there any quick way to resolve my question except upgrade? ]


    Thanks,
    Lucio

  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    02 Sep 2011
    Link to this post
    Hello Lucio,

    This is a very strange problem indeed. If the .master file exists in the ~/App_Master folder, this means that the template was created and properly saved at some point in the database. If you execute the following SQL Query:

    SELECT * FROM [sf_PageBase] WHERE ItemType = 'PageTemplate'

    do you get a record for which the Name column is equal to the name of your missing template?

    Once the template is saved in the database Sitefinity shouldn't try to remove any records. Are you sure you didn't remove the template by accident using the Backend?

    Best wishes,
    Lubomir Velkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

2 posts, 0 answered