gpt4 book ai didi

sitecore - 在核心数据库的 Sitecore 后端中保存时出错

转载 作者:行者123 更新时间:2023-12-01 12:33:41 25 4
gpt4 key购买 nike

将我们的 Sitecore 6.3 更新到 6.6 后,我们遇到了一个问题,即当我们想在核心数据库中保存一个项目时,会出现此错误消息:

[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]


Sitecore.Intranet.FrontendEditing.FrontendEditor.IsAutoVersioningEnabledForItem(Item item) +69
Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion.Process(SaveArgs args) +515

[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
Sitecore.Pipelines.Processor.Invoke(PipelineArgs args) +318
Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +330
Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +208
Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +182
Sitecore.Web.UI.Sheer.ClientPage.RunPipelines() +280
Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +530
Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +25
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394



[NullReferenceException]: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Sitecore.Intranet.FrontendEditing.FrontendEditor.IsAutoVersioningEnabledForItem(Item item)
bei Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion.Process(SaveArgs args)
[TargetInvocationException]: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Sitecore.Pipelines.Processor.Invoke(PipelineArgs args)
bei Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline)
bei Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args)
bei Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic)
bei Sitecore.Web.UI.Sheer.ClientPage.RunPipelines()
bei Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e)
bei Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e)
bei System.Web.UI.Control.PreRenderRecursiveInternal()
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException]: Eine Ausnahme vom Typ "System.Web.HttpUnhandledException" wurde ausgelöst.
bei System.Web.UI.Page.HandleError(Exception e)
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
bei System.Web.UI.Page.ProcessRequest()
bei System.Web.UI.Page.ProcessRequest(HttpContext context)
bei ASP.sitecore_shell_applications_content_manager_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\0a348ed6\6269aa05\App_Web_x1rqdwhm.1.cs:Zeile 0.
bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

在主数据库中保存项目工作正常。我们进行了必要的配置文件更改。后端和网站运行良好。

我该如何解决这个问题?提前致谢:)

最佳答案

查看堆栈跟踪 - Sitecore.Intranet.FrontendEditing.FrontendEditor 类抛出异常。此类来自 Sitecore Intranet 模块。

包含此类的 Sitecore Intranet 模块的最新版本是 Sitecore Intranet 3.3(支持 Sitecore 6.3)。

Sitecore Intranet 4.0(支持 Sitecore 6.6)中不再存在此类。

您应该将 Sitecore Intranet 模块更新为 4.0 version


编辑:

Release History of Sitecore Intranet说:

June 20, 2013

The Sitecore Intranet Platform - SIP v4.0 rev.130523 released on May 23, 2013.

Tested with Sitecore CMS 6.6. rev. 130529 (Update-6) released on June 6, 2013.

Compatibility

This release only runs on Sitecore 6.6 and DMS 6.6.


编辑 2:

您可以尝试创建一个继承自 Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion 的类并捕获此异常。无论如何,它都不应该为 core 数据库执行。

请记住注册您的新类而不是原来的AddNewVersion:

    <!-- processor mode="on" type="Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion, Sitecore.Intranet" / -->
<processor mode="on" type="My.Assembly.Namespace.AddNewVersion, My.Assembly.Namespace" />
namespace My.Assembly.Namespace
{
public class AddNewVersion : Sitecore.Intranet.Pipelines.SaveUI.AddNewVersion
{
public new void Process(Sitecore.Pipelines.Save.SaveArgs args)
{
try
{
base.Process(args);
}
catch (Exception exc)
{
Log.Error("Exception in AddNewVersion.Process", exc, this);
}
}
}
}

关于sitecore - 在核心数据库的 Sitecore 后端中保存时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31268384/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com