【问题标题】:Getting error on Content Editor after upgrading to Sitecore 8升级到 Sitecore 8 后内容编辑器出现错误
【发布时间】:2015-09-11 06:24:26
【问题描述】:

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

“/”应用程序中的服务器错误。

值不能为空。

参数名称:fieldNameTranslator

说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取更多信息 有关错误的信息以及它在代码中的来源。 异常详细信息:System.ArgumentNullException:值不能为空。 参数名称:fieldNameTranslator

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

[ArgumentNullException:值不能为空。 参数名称: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 (对象,对象[])+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(项目>文件夹,项目根,布尔显示编辑器)+374 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update() +411 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(Even>tArgs e) +212

【问题讨论】:

  • Information regarding the origin and location of the exception can be identified using the exception stack trace below. — 你能提供堆栈跟踪吗?
  • @DmytroShevchenko,请查找更新后的问题。
  • 您打算使用什么索引引擎?是 Lucene 还是 SOLR?
  • 我们的索引引擎是 Solr
  • 您是否禁用了所有 Lucene 配置?

标签: sitecore sitecore8 sitecore-mvc


【解决方案1】:

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

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

Inherits="Sitecore.Web.Application"

收件人:

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

这是假设再次您的依赖注入是 CastleWindsor 并且 CastleWindors 的所有基本 DLL 都部署在您的 Web 实例中(Website > bin 文件夹)

这些是:

  • SolrNet.dll
  • Microsoft.Practices.ServiceLocation.dll
  • Castle.Facilities.SolrNetIntegration.dll
  • Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.dll

另外,您可以检查其他四 (4) 个 DI 框架,如果 CastleWindor 不是您项目的依赖项注入,这些 DI 的描述性详细信息可以在 Sitecore Search Scaling Guide 中找到。

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

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

【讨论】:

    【解决方案2】:

    我们需要做一些事情。您是否从 Lucene 更改为 Solr。在 Solr.config 中,我们需要更改一些值,尽管我认为这个错误已经修复。来看看

    http://blog.horizontalintegration.com/2015/01/21/sitecore-8-solr-configuration-and-setup/

    https://born4joy.wordpress.com/2015/09/03/installation-and-configuration-of-solr-for-sitecore-8/

    【讨论】:

    • 这些所有更改都已合并,但仍面临此问题。
    • 嗨,也许也值得一看 kb.sitecore.net/articles/227897。你用的是solr吗?您是否从 sitecore 下载了最新的更新包?感觉好像配置不正确
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-12
    相关资源
    最近更新 更多