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)
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.
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?
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.
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.
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
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.
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
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.
Thanks will try the path fixup tool to see if that helps!
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?
will try that before deploying the path fixup
Try this...
Stop your app pool.
Delete /app_data/umbraco.config
Delete everything in /app_data/temp/
Restart app.
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 ?
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.
Anthony I will definitely do that first next time to make sure everything is in sync.
Thanks guys for your help.
Cheers
Ali
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
is working on a reply...