Sitecore SXA search error - sitecore8

We are working on a Siteocore 8.2 update 3 solution with SXA and WFFM modules included. Everything is fine on CM Server but we are facing issues with search on CD server.
We've enabled 'SwitchMastertoweb' and configured CD SXA settings as per the instructions in the installation guide. But still we are facing this issue.
Any clue?
16728 15:36:13 ERROR Call to resource failed with exception - Resource: https://<<sitename>>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F};
16728 15:36:13 ERROR
GET call failed - Endpoint: https://<site>/sxa/search/facets?f=sxacategoryname&p=3&l=&sig=&q=pets&s={F33B91B9-DB55-4E81-84C1-71C99E612F9F}|{F33B91B9-DB55-4E81-84C1-71C99E612F9F};
HttpStatusCode: (400) BadRequest; HttpStatusDescription: Bad Request; Error:
Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.;
24392 15:36:13 WARN Could not find constructor in ReflectionUtil.CreateObject: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. The constructor parameters may not match or it may be an abstract class. Parameter info: Count: 0
24392 15:36:13 WARN Facets endpoint exception
Exception: Sitecore.Exceptions.ConfigurationException
Message: Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found.
Source: Sitecore.Kernel
at Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.GetContextIndex(IIndexable indexable, GetContextIndexArgs args)
at Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.Process(GetContextIndexArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
at Sitecore.Abstractions.CorePipelineWrapper.Run(String pipelineName, PipelineArgs args)
at Sitecore.ContentSearch.Pipelines.GetContextIndex.GetContextIndexPipeline.Run(ICorePipeline pipeline, GetContextIndexArgs args)
at Sitecore.XA.Foundation.Search.Services.SearchService.GetQuery(String query, String scope, String language, Coordinates center, String& indexName)
at Sitecore.XA.Foundation.Search.Controllers.SearchController.GetFacets(String f, String q, String s, String l, String g, String sig)

It's a very late answer and I believe that this problem is already gone in 1.6 and 1.7. In the older releases of SXA we've been patching a lot of Sitecore indexes - unnecessary.
The exception which I can see there Could not create instance of type: Sitecore.XA.Foundation.Search.Providers.Lucene.LuceneIndex. No matching constructor was found. is exactly telling this. There is a patch for the index which doesn't exist. The solution for such kinds of issues is to remove not needed patches for indexes which doesn't exist (you are not using them, they are in present on your Sitecore instance).
In SXA 1.7 we have just patched for sitecore_master_index and sitecore_web_index. There is also an option to use SXA specific indexes and not use Sitecore one at all.

Related

Sitecore 8, Crawling error for every item (Could not compute value for ComputedIndexField)

In the crawling.log I can see the following exception exist for every sitecore item. This is also making the sitecore content editor slow at startup.
6488 20:05:13 WARN Could not compute value for ComputedIndexField: recommendation for indexable: sitecore://master/{8FD38E05-E13C-4D51-842F-877B5DA91E72}?lang=en&ver=1
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.Analytics.Reporting.ReportingQueryBase..ctor(ReportDataProviderBase reportProvider, CachingPolicy cachingPolicy)
at Sitecore.ContentTesting.Analytics.Reporting.TimeRangeItemBasedReportingQuery..ctor(ID queryItemId, ReportDataProviderBase reportProvider, CachingPolicy cachingPolicy)
at Sitecore.ContentTesting.Analytics.Reporting.TestPotentialQuery..ctor(ReportDataProviderBase reportProvider)
at Sitecore.ContentTesting.ContentSearch.ComputedIndexFields.TestPotentialMetricBase.ComputeFieldValue(IIndexable indexable)
at Sitecore.ContentSearch.LuceneProvider.LuceneDocumentBuilder.AddComputedIndexFieldsInSequence()
Nested Exception
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Sitecore.Analytics.MongoDB
at Sitecore.Analytics.Reporting.MongoDbReportDataSource..ctor(String connectionStringName)
I actually have no idea whats going wrong. Any help would be really appreciated.

Sitecore Fieldmap Configuration Error

I am getting the following error after I followed the installation of Sitecore SOLR for 8.1. After changing all the lucene configs to disabled, and the solr ones to enabled, and then added this in the Global.asax
public void Application_Start()
{
this.Container = new WindsorContainer();
var startup = new WindsorSolrStartUp(this.Container);
startup.Initialize();
}
the minute I add those lines above, I get this error:
Could not find property 'fieldMap' on object of type: System.String
[InvalidOperationException: Could not find property 'fieldMap' on
object of type: System.String]
Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[]
properties) +2402
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +643
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
String[] parameters, Boolean assert) +137
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +109
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +120
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +1013
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
+266 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_Cores()
+92 Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorSolrStartUp.Initialize()
+44
Does anyone have an idea why this would happen? I tried replacing config files from a fresh 8.1 but still no luck.
Thanks!
You don't need to add any code in Global.asax , Just make sure that your Global.asax have the following tag in header only:
<%#Application Language='C#' Inherits="Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorApplication" %>
Checkout this link
I found there was one folder where I left out a .disabled for Lucene. After doing this, it worked. Ooops!

Issue in publishing whole website after upgrading from 7.1 to 7.2(release)

We have upgraded sitecore version from 7.1 to 7.2 and we are on the last step where we need to publish whole website. When we tried to publish whole website, we are got following error:
Job started: Publish to 'web'|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Could not resolve type name: Sitecore.Publishing.Pipelines.Publish.OverridePublishContext, Sitecore.Kernel (method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).
at Sitecore.Diagnostics.Error.Raise(String error, String method)
at Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Pipelines.CorePipelineFactory.GetObjectFromType(String type, XmlNode processorNode)
at Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters)
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Publishing.Pipelines.Publish.PublishPipeline.Run(PublishContext context)
at Sitecore.Publishing.Publisher.Publish()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(`enter code here`Object obj, Object[] parameters)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Jobs.Job.ThreadEntry(Object state)
When having the issue Could not resolve type name, this means that your dlls are not up to date or your config files.
Please check your dlls against dlls from a fresh installation of Sitecore 7.2. Also check the config files. Moreover, check that you dlls have been compiled against the Sitecore 7.2 dlls.
Thanks

"Empty strings are not allowed" error when adding Sitecore placeholder

I get the following error message when trying to add a placeholder to a layout in Sitecore 6.5:
"Empty strings are not allowed.<br>Parameter name: xml"
Any idea what could be the problem? The following stack trace appears in the log:
1124 10:20:56 ERROR Application error.
Exception: System.Web.HttpUnhandledException
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source: System.Web
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.sitecore_shell_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\59ed33b7\d6112557\App_Web_edgk4py3.1.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Nested Exception
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters)
at Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters)
at Sitecore.Web.UI.HtmlControls.Component.HandleMessage(Message message)
at Sitecore.Shell.Framework.Commands.ClientEventCommand.SendEventMessage()
at Sitecore.Shell.Framework.Commands.ClientEventCommand.Execute(CommandContext context)
at Sitecore.Web.UI.Sheer.ClientPage.RaiseEvent()
at Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Nested Exception
Exception: System.ArgumentException
Message: Empty strings are not allowed.
Parameter name: xml
Source: Sitecore.Kernel
at Sitecore.Diagnostics.Assert.ArgumentNotNullOrEmpty(String argument, String argumentName)
at Sitecore.Layouts.LayoutDefinition.Parse(String xml)
at Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm.OnOK(Object sender, EventArgs args)
I encountered this issue and found the source of the issue to be the settings InvalidItemNameChars and ItemNameValidation being blank in the web.config.
I have removed the values to import a packages with invalid characters as soon as I restored the values to the Default values, shown below, the exception stopped occurring.
<setting name="InvalidItemNameChars" value="\/:?"<>|[]" />
<setting name="ItemNameValidation" value="^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$" />
Most commonly, this has to do with your language settings. Like for instance; if your user (via the default Content Language) is set to edit items in a language, the current item you are editing does not have a language specific version for.
So for instance; you're on an item that exists in "en" - and the user you are logged in as; defaults to "da-DK" - AND the current item does not have a version in "da-DK".
I've not seen this bug in a long while though, I would have thought it fixed.
It might not be this issue at all, but it's really hard to tell from the limited information you have on the issue.
Take a look at your user settings; also if there's any "ContentLanguage" attributes defined in your site definition that might not be what you expect.

Could not resolve type name: frontmedia.core.sitecoreextension.search.customindex, frontmedia.core.sitecoreextension [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
When i work on sitecore with tds i got this error. How can i resolve this problem?
Server Error in '/' Application.
Could not resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)). 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.Exception:
Could not resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).
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.
Stack Trace:
[Exception: Could not resolve type
name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).]
Sitecore.Diagnostics.Error.Raise(String
error, String method) +129
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert) +421
Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode
configNode, String[] parameters,
Boolean assert) +67
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+141 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters,
Boolean assert) +424
Sitecore.Configuration.Factory.CreateFromReference(XmlNode
configNode, String[] parameters,
Boolean assert) +194
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+118 Sitecore.Configuration.Factory.GetInnerObject(XmlNode
paramNode, String[] parameters,
Boolean assert) +930
Sitecore.Configuration.Factory.AssignProperties(XmlNode
configNode, String[] parameters,
Object obj, Boolean assert, Boolean
deferred, IFactoryHelper helper) +581
Sitecore.Configuration.Factory.CreateObject(XmlNode
configNode, String[] parameters,
Boolean assert, IFactoryHelper helper)
+296 Sitecore.Configuration.Factory.CreateObject(String
configPath, String[] parameters,
Boolean assert) +424
Sitecore.Configuration.Factory.GetDatabase(String
name, Boolean assert) +185
Sitecore.Configuration.Factory.GetDatabases()
+152 Sitecore.Data.Managers.HistoryManager.InitializeEventHandlers()
+49 Sitecore.Pipelines.Loader.InitializeManagers.Process(PipelineArgs
args) +9 (Object , Object[] ) +80
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs
args) +191
Sitecore.Nexus.Web.HttpModule.Application_Start()
+146 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication
app) +603
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context,
MethodInfo[] handlers) +546
System.Web.HttpApplication.InitSpecial(HttpApplicationState
state, MethodInfo[] handlers, IntPtr
appContext, HttpContext context) +325
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +375
[HttpException (0x80004005): Could not
resolve type name:
frontmedia.core.sitecoreextension.search.customindex,
frontmedia.core.sitecoreextension
(method:
Sitecore.Configuration.Factory.CreateType(XmlNode
configNode, String[] parameters,
Boolean assert)).]
System.Web.HttpRuntime.FirstRequestInit(HttpContext
context) +11529072
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext
context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +4784373
-------------------------------------------------------------------------------- Version Information: Microsoft .NET
Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1
Most likely you need to add a reference to the frontmedia.core.sitecoreextension assembly in your project folder for your build. Look in you bin for the dll named frontmedia.core.sitecoreextension. In Solution Explorer in VS, select References (make sure to show all files and folders). Right click to open the context menu. Select Add Reference...In the dialog, select the Browse tab. Broswe to the bin folder of the website. Select the frontmedia.core.sitecoreextension.dll. Click OK. In properties, set copylocal to false. Build. There may be other extensions, too. Look in the App_Config/Include folder to what other extensions are referrenced. For example, look at XslExtension.config for named classes and assemblies. If using TDS from Hedge Hog, you'll probably need to add this to your build server as well.