Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 18, 2013 @ 15:00
    Ali Sheikh Taheri
    0

    umbraco 6.0.5 rename doctype messes up everything

    Hi 

    I've renamed 3 doctype (alias and name) and after that every node on my content will generate YSOD (below) after publishing.

    System.ArgumentNullException: Value cannot be null.
    Parameter name: attribute
       at System.Xml.Linq.XAttribute.op_Explicit(XAttribute attribute)
       at UmbracoExamine.UmbracoContentIndexer.ReIndexNode(XElement node, String type)
       at Examine.ExamineManager._ReIndexNode(XElement node, String type, IEnumerable`1 providers)
       at UmbracoExamine.UmbracoEventManager.content_AfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e)
       at umbraco.content.DocumentCacheEventHandler.Invoke(Document sender, DocumentCacheEventArgs e)
       at umbraco.content.FireAfterUpdateDocumentCache(Document sender, DocumentCacheEventArgs e)
       at umbraco.content.UpdateDocumentCache(Document d)
       at Umbraco.Web.Strategies.Publishing.UpdateCacheAfterPublish.UpdateSingleContentCache(IContent content)
       at Umbraco.Web.Strategies.Publishing.UpdateCacheAfterPublish.PublishingStrategy_Published(IPublishingStrategy sender, PublishEventArgs`1 e)
       at Umbraco.Core.Events.EventExtensions.RaiseEvent[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
       at Umbraco.Core.Publishing.PublishingStrategy.PublishingFinalized(IContent content)
       at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Boolean omitCacheRefresh, Int32 userId, Boolean raiseEvents)
       at umbraco.cms.businesslogic.web.Document.PublishWithResult(User u, Boolean omitCacheRefresh)
       at umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e)
       at umbraco.controls.ContentControl.DoSaveAndPublish(Object sender, ImageClickEventArgs e)
       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.umbraco_editcontent_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0e6ade10\e942c68d\App_Web_editcontent.aspx.5f2dec3.a8wzfxc2.0.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 18, 2013 @ 15:05
    Sebastiaan Janssen
    0

    Has this site been upgraded from an earlier version?

    What was the before and after document type name? Does it help to rename the document type back to what it was? 

    What does your ExamineIndex.config and ExamineSettings.config look like?

    In any case, try at least running the path fixup tool to see if that helps:

    http://our.umbraco.org/projects/developer-tools/path-fixup

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 18, 2013 @ 15:42
    Ali Sheikh Taheri
    0

    I've upgraded that from v6.0.3 to 6.0.5.

    DocType before: SelfAssessmentTool 
    DocType After: OnlineAssessmentTool

    for now I've just renamed back the docType and fixed the problem ( I had to publish every node in content) but I deally would like to change it to follow all the classes and Templates.

    ExamineIndex.config and ExamineSetting.config are the same as default with just added one custom index.

     

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 18, 2013 @ 15:45
    Ali Sheikh Taheri
    0

    Thanks will try the path fixup tool to see if that helps!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 18, 2013 @ 15:48
    Sebastiaan Janssen
    0

    I've just tried the same rename but that all seems to work fine over here. I'm wondering if it might be the custom index, try and take that out for a minute to see if that helps?

     

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 18, 2013 @ 15:49
    Ali Sheikh Taheri
    0

    will try that before deploying the path fixup

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jul 18, 2013 @ 17:41
    Anthony Dang
    0

    Try this...

    Stop your app pool.

    Delete /app_data/umbraco.config

    Delete everything in /app_data/temp/

    Restart app.

     

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 22, 2013 @ 12:12
    Ali Sheikh Taheri
    0

    sorry for late reply!

    I put back everything to it's original doctype alias in order to make the site work. then I had to publish the entire site ( not through republish entire site, had to click on the root home page and publish all including children)

    I just had a chance to rename the docTypes today to replicate the error but now I am not getting any error and all works fine. (have renamed all 3 doctypes) 

    (didn't install the path-fixup and neither removing temp files) 

    It's worth mentioning that App Pool is restared everytime upon rebuilding the solution via VS.

    Any idea ? 

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jul 22, 2013 @ 17:52
    Anthony Dang
    0

    Well, renaming doctype aliases can cause random issues depending on which umbraco version you're using. This is because the db, umbraco.config and lucene indexes can be out of sync.

    I normally just stop the app, delete the files, restart, re-index... everything should work.

     

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 22, 2013 @ 20:21
    Ali Sheikh Taheri
    0

    Anthony I will definitely do that first next time to make sure everything is in sync.

    Thanks guys for your help.

    Cheers

    Ali

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jul 29, 2013 @ 16:23
    Ali Sheikh Taheri
    100

    Hi Anthony,

    It happened again, I immediately renamed the docType and I got the null error in content section.

    I tried your solution and didn't work help. I published the root of that doctype by selecting publish from right click menu.  As below and it fixed the YSOD

     

     

    The above fixed the problem, in case anyone else have the same issue

     

     

     

     

     

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft