gpt4 book ai didi

sitecore - 升级到 Sitecore 8 后内容编辑器出现错误

转载 作者:行者123 更新时间:2023-12-04 12:53:15 27 4
gpt4 key购买 nike

我已从 升级Sitecore 7.5 Sitecore 8 , 我得到 错误 尝试访问内容编辑器时。

Server Error in '/' Application.

Value cannot be null.

Parameter name: fieldNameTranslator

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.ArgumentNullException: Value cannot be null. Parameter name: fieldNameTranslator

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.

[ArgumentNullException: Value cannot be null. Parameter name: fieldNameTranslator] Sitecore.ContentSearch.Linq.Solr.SolrIndexParameters..ctor(IIndexValueFormatter >valueFormatter, IFieldQueryTranslatorMap`1 fieldQueryTranslators, >FieldNameTranslator fieldNameTranslator, IExecutionContext[] executionContexts, >IFieldMapReaders fieldMap, Boolean convertQueryDatesToUtc) +310

Sitecore.ContentSearch.SolrProvider.LinqToSolrIndex`1..ctor(SolrSearchContext >context, IExecutionContext[] executionContexts) +192 Sitecore.ContentSearch.SolrProvider.SolrSearchContext.GetQueryable(IExecutionCo>ntext[] executionContexts) +83 Sitecore.ContentTesting.ContentSearch.TestingSearch.GetRunningTests() +637 Sitecore.ContentTesting.Data.SitecoreContentTestStore.GetActiveTests(DataUri >hostItemDataUri, String searchText) +252 Sitecore.ContentTesting.Pipelines.GetContentEditorWarnings.GetContentTestingWar>nings.Process(GetContentEditorWarningsArgs args) +247 (Object , Object[] ) +141 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365 Sitecore.Shell.Applications.ContentManager.Editor.GetWarnings(Boolean >hasSections) +271 Sitecore.Shell.Applications.ContentManager.Editor.Render(RenderContentEditorArg>s args, Control parent) +178 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.RenderEditor(Item >item, Item root, Control parent, Boolean showEditor) +231 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateEditor(Item >folder, Item root, Boolean showEditor) +374 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update() +411 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(Even>tArgs e) +212

最佳答案

这是假设您已经禁用了所有 Lucene 在您的 App_Config > Include 文件夹下配置并阅读 Sitecore Search Scaling Guide第 3 章,如果还没有,请这样做。

现在,问题取决于您的 Global.asax,替换:

Inherits="Sitecore.Web.Application"

到:
Inherits="Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorApplication"

这是假设 再次您的依赖注入(inject)是 CaSTLeWindsor,并且 CaSTLeWindors 的所有基本 DLL 都部署在您的 Web 实例中(网站 > bin 文件夹)

这些都是:
  • SolrNet.dll
  • Microsoft.Practices.ServiceLocation.dll
  • CaSTLe.Facilities.SolrNetIntegration.dll
  • Sitecore.ContentSearch.SolrProvider.CaSTLeWindsorIntegration.dll

  • 或者,您可以检查其他四 (4) 个 DI 框架是否 CaSTLeWindor 不是您项目的依赖注入(inject),这些 DI 的描述性详细信息可以在 Sitecore Search Scaling Guide 中找到。

    验证和设置完成后,重新加载您的 Sitecore 实例,它应该会正确加载。干杯!

    已编辑 :您可能还想根据您当前的实例版本检查 SOLR 支持包 DLL 版本。本周我多次遇到这个问题,根本原因总是归结为 DLL 版本差异。

    关于sitecore - 升级到 Sitecore 8 后内容编辑器出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32516859/

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