Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error on Content Editor after upgrading to Sitecore 8

I have done an upgrade from Sitecore 7.5 to Sitecore 8, And I am getting an error when trying to Access the Content Editor.

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

like image 599
Shabeer Thalaprathu Avatar asked Sep 11 '15 06:09

Shabeer Thalaprathu


1 Answers

This is assuming that you already disabled all the Lucene configuration under your App_Config > Include folder and read the Sitecore Search Scaling Guide chapter 3, if not yet, please do so.

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

Inherits="Sitecore.Web.Application"

To:

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

This is assuming again that your dependency injection is the CastleWindsor and all the essential DLLs for CastleWindors were deployed in your web instance (Website > bin folder)

These are:

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

Alternatively, there are other four (4) DI framework you can check if CastleWindor is not the dependency injection of your project, and the descriptive details of these DI can be found in the Sitecore Search Scaling Guide.

Once the verification and setup is completed, reload your Sitecore instance and it should load properly. Cheers!

Edited: You may also want to check the SOLR support package DLL version against your current instance version. I experienced the issue several times this week and the root cause always boils down to DLL version discrepancies.

like image 106
Marvin Glenn Lacuna Avatar answered Nov 03 '22 00:11

Marvin Glenn Lacuna