Getting an error in the content editor after upgrading to Sitecore 8

I upgraded from Sitecore 7.5 to Sitecore 8 , and when I try to access the content editor, I get an error .

Server error in application "/".

The value cannot be null.

Parameter Name: fieldNameTranslator

Description: An unhandled exception occurred during the execution of the current web request. View the stack trace for error information and where it originated in the code. Exception Details: System.ArgumentNullException: The value cannot be null. Parameter Name: fieldNameTranslator

Initial error: An unhandled exception was thrown during the execution of the current web request. The origin information 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,> file_Translator fieldNameTranslator, IExecateContextMonitorTexture_ontextservice_configuration

Sitecore.ContentSearch.SolrProvider.LinqToSolrIndex`1..ctor (SolrSearchContext> context, IExecutionContext [] executeContexts) +192 Sitecore.ContentSearch.SolrProvider.SolrSearchContext.GetQueryable (IExecutionCoCentSentSentCentSentCentecTecTectextTesttextTesttextTesttextTesttextTesttextTenttextTenttextTenttextTenttextTenttextTenttext .GetRunningTests () +637 Sitecore.ContentTesting.Data.SitecoreContentTestStore.GetActiveTests (DataUri> hostItemDataUri, String searchText) +252 Sitecore.ContentTesting.Pipelines.GetContentEditorWarnings.GetContentTestingParWings_Getnings_Warings.GetContentTestingProcessWarings.GetContentTestingWgs> nings> Nings> ) +141 Sitecore.Pipelines.CorePipeline.Run (PipelineArgs args) +365 Sitecore.Shell.Applications.ContentManager.Editor.GetWarnings (Boolean> hasSections) +271 Sitecore.Shell.Applications.ContentManager.Editor.Render (Rendergententgs , Control parent) +178 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.RenderEditor (Item> item, Ite m 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 () Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered (Even> tArgs e) +212

+7
sitecore sitecore-mvc sitecore8
source share
2 answers

It is assumed that you have already disabled the entire Lucene configuration in the App_Config> Include folder and read the Sitecore Search Scaling Guide, Chapter 3, if this is not already done, please do so.

Now the problem depends on your Global.asax, replace:

Inherits="Sitecore.Web.Application" 

To:

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

This assumes again that your dependency injection is CastleWindsor, and all the necessary DLLs for CastleWindors have been deployed to your web instance (website folder> bin)

It:

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

Alternatively, there are four (4) DI frameworks that you can check to see if CastleWindor is an independent injection of your project, and descriptive data for these DIs can be found in the Sitecore Search Scaling Guide.

After completing the verification and configuration, restart the Sitecore instance and it should load correctly. Hooray!

Edited . You can also check the SOLR support package support DLL version for your current instance version. I ran into this issue several times this week, and the main reason always came down to inconsistencies in the version of the DLL.

+1
source share

We need to do something. You have moved from Lutsen to Solr. It was in Solr.config that we needed to change some values, although I thought this error was fixed. Take a look at

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/

0
source share

All Articles