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

Forums / Bugs & Issues / Deleting draft version has broken the page

Deleting draft version has broken the page

7 posts, 0 answered
  1. Nick
    Nick avatar
    113 posts
    Registered:
    21 Oct 2008
    16 Jan 2012
    Link to this post
    Hi,

    We had a page that was published. Then we edited the page and saved it as draft. The change we made was changing the template which broke the page (this is another issue, for another day) so we went to Revision History and deleted the drafts version, leaving just the published version in place.

    Now we can't edit the page at all as when we try to view it we get the error message below. It's worth noting that on the page list the page still shows as "Draft (newer than published)" even though we have deleted those draft versions.

    Error is:

    Server Error in '/' Application.

    Sequence contains more than one matching element

    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.InvalidOperationException: Sequence contains more than one matching element

    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: 

    [InvalidOperationException: Sequence contains more than one matching element]
       System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +2717690
       Telerik.Sitefinity.Lifecycle.Model.LifecycleExtensionsModel.GetTempItem(ILifecycleDataItemLive liveItem) +86
       Telerik.Sitefinity.Lifecycle.LifecycleDecorator`2.GetTemp(TDraft draftItem) +46
       Telerik.Sitefinity.Lifecycle.LifecycleDecorator`2.CheckOut(TDraft masterItem, CultureInfo culture) +69
       Telerik.Sitefinity.Modules.Pages.PageManager.EditPage(Guid pageDataId, CultureInfo culture) +124
       Telerik.Sitefinity.Modules.Pages.PageManager.EditPage(Guid pageDataId, Boolean lockIt, CultureInfo culture) +26
       Telerik.Sitefinity.Modules.Pages.PageManager.EditPage(Guid pageDataId, Boolean lockIt) +32
       Telerik.Sitefinity.Web.PageEditorRouteHandler.GetPageData(SiteMapNode node) +885
       Telerik.Sitefinity.Web.RouteHandler.GetHttpHandler(RequestContext requestContext) +120
       Telerik.Sitefinity.Web.PageEditorRouteHandler.GetHttpHandler(RequestContext requestContext) +39
       System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +8952632
       System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    Is this a bug? What can we do to get our page working again?

    thanks
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    17 Jan 2012
    Link to this post
    Hi Nick,

    We have answered you in the support ticket you have opened. Please provide ( if possible ) the requested information so we can get to the bottom of the issue and get your page working again.

    All the best,
    Victor Velev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Nick
    Nick avatar
    113 posts
    Registered:
    21 Oct 2008
    06 Sep 2012
    Link to this post
    Hi I am experiencing a similar problem, could you please give the solution. the version is 4.3.1885
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    10 Sep 2012
    Link to this post
    Hello Nick,

    I can see in our system that a colleague of mine is handing your support ticket request. If it is ok for you, I would suggest to continue our communication in the support ticket so we can address proper resources for resolving the issue. After the problem is being resolved, you can share the information with the community.

    Regards,
    Victor Velev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  5. Tarek El-Mallah
    Tarek El-Mallah avatar
    2 posts
    Registered:
    04 Dec 2013
    08 Apr 2014 in reply to Nick
    Link to this post

    To fix this problem just go to the draft table (sf_draft_pages) in the SQL DB, and remove all records for this specific page that contains flag  is_temp_draft = 1 .

    delete from   sf_draft_pages
    WHERE        (page_id = 'AB3A4477-C33E-6444-B2E5-FF0000444C51') and is_temp_draft=1

  6. Nelson
    Nelson avatar
    13 posts
    Registered:
    29 Jul 2015
    23 Jun
    Link to this post

    Hi,

     

    Tarek El-Mallah approach, didnt worked for me.

    On my case this happened because I changed the name of a Layout in Feather Boostrap Layout Folder. I went to backoffice(was not giving the error) associated the pages to the correct layout name, deleted the old name layout. and the error disappeared.

     

    Best Regards,

    Nelson

  7. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    28 Jun
    Link to this post
    Hello Nelson,

    Thank you for the shared solution with the community. 

    Regards,
    Svetoslav Manchev
    Telerik
     
    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
     
7 posts, 0 answered