Sitecore内容编辑器抛出:'/'应用程序错误中的服务器错误

问题描述 投票:1回答:1

当我尝试在Sitecore 9.1中打开内容编辑器时,它会引发以下错误。这是堆栈跟踪的链接:

stack trace

请帮我解决这个错误。

你调用的对象是空的。描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.NullReferenceException:未将对象引用设置为对象的实例。

源错误:在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。

堆栈跟踪:[NullReferenceException:对象引用未设置为对象的实例。] Sitecore.Buckets.Commands.MakeTemplateBucketable.GetToolTip(CommandContext context,String tooltip)+167 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.FillParamsFromCommand( CommandContext commandContext,RibbonCommandParams ribbonCommandParams)+186 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.GetCommandParameters(Item controlItem,CommandContext commandContext)+78 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderSmallCheckButton(HtmlTextWriter output,Item button, CommandContext commandContext)+99 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderButton(HtmlTextWriter output,Item button,CommandContext commandContext)+823 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output,Item chunk, CommandContext commandContext)+341 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter输出,Item chunk,CommandContext commandContext,Boolean isContextual,String id )+243 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter输出,Item chunk,CommandContext commandContext,Boolean isContextual)+160 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunks(HtmlTextWriter输出,Item strip ,CommandContext commandContext,Boolean isContextual)+425 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter output,Item ribbon,Boolean isContextual,ListString visibleStripList)+1612 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips (HtmlTextWriter输出,Item defaultRibbon,Item contextualRibbon,ListString visibleStripList)+161 Sitecore.Web.UI.WebControls.Ribbons.Ribbon.Render(HtmlTextWriter输出)+733 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,ControlAdapter adapter) +131 Sitecore.Web.HtmlUtil.RenderControl(Control ctl)+79 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateRibbon(Item folder,Boolean isCurrentItemChanged,Boolean showEditor)+559 Sitecore.Shell.Applica tions.ContentManager.ContentEditorForm.Update()+ 581 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(EventArgs e)+204 [TargetInvocationException:调用目标已抛出异常。] System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] arguments,Signature sig,Boolean constructor)+0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object [] parameters,Object [] arguments)+128 System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)+142 Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo方法,Object []参数,Object obj)+89 Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e )+143 System.Web.UI.Control.PreRenderRecursiveInternal()+ 200 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+7479

asp.net-mvc content-management-system sitecore9
1个回答
0
投票

刚刚得到同样的错误。当您尝试打开的项目的模板被破坏时,似乎会发生这种情况。在您的情况下,您可能破坏了Home Item,当您打开内容编辑器时会自动选择该Home Item。要进行验证,可以在DBBrowser中重命名主项(以便不自动选择它)。之后内容编辑器应该再次运行,您应该在快速操作栏中看到一个断开的链接警告。

最简单的修复方法可能是:

  • 创建主项目的完整模板层次结构的包
  • 安装该包

之后,您应该能够重新命名您的主项目并正常启动内容编辑器。

© www.soinside.com 2019 - 2024. All rights reserved.