WFFM error on CD server - sitecore8

Ours is a sitecore 8.2 update 3 solution.
We installed wffm on CD as per sitecore guide and enabled SwitchMastertoweb config,
Post it, we are getting the below error.
Solutions tried out
1. Removing the reporting section from SwitchMastertoweb.config file.
No luck. same error.
2. Disabling SwitchMastertoweb.config file.Still same error(sounds strange to me but we are getting same error).
Any clue or more solutions to try out
Exception Details: System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Sitecore.Analytics.Reporting.ReportDataProviderBase'.
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:
[InvalidCastException: Unable to cast object of type 'System.String' to type 'Sitecore.Analytics.Reporting.ReportDataProviderBase'.]
Sitecore.Forms.Core.Dependencies.DefaultImplFactoryObjectsProvider.CreateObject(String configPath, Boolean assert) +57
Sitecore.WFFM.Analytics.Dependencies.ReportDataProviderWrapper.GetReportDataProviderBase(Boolean assert) +72
Sitecore.WFFM.Analytics.Providers.AnalyticsFormsDataProvider..ctor(ReportDataProviderWrapper reportDataProviderWrapper, ILogger logger, IAnalyticsTracker analyticsTracker, ISettings settings) +86

Atlast, issue got solved. Along with the above tips mentioned above we had to enable the below files to make it work. Sitecore.Marketing.TaxonomyCD.config Sitecore.MarketingCD.config Sitecore.Marketing.Definitions.MarketingAssets.RepositoriesCD.config

Related

The parameter *pBookmark is invalid for CPage::Load. [SAS Add in for Excel]

Would anyone be able to help me debug the following error as I am unsure what is causing it:
The parameter *pBookmark is invalid for CPage::Load.
-------------------------- Technical Information Follows --------------------------
Exception Details:
Exception type: System.ArgumentException Message: The parameter
*pBookmark is invalid for CPage::Load. Target Site: GetRows
Stack Trace: at ADODB.RecordsetClass.GetRows(Int32 Rows, Object Start,
Object Fields) at SAS.Servers.Dataset.Read(Int32 startRow) at
SAS.OfficeAddin.Rendering.ExcelDataRenderer.RenderSasData(SasDataSource
dataSource, Range destination, RenderState state, RenderOptions
options, Int32 cachedRowCount) at
SAS.OfficeAddin.ExcelAddin.ProcessDataView(JobContext context, Range
destination) at SAS.OfficeAddin.ExcelAddin.ProcessDataViews(JobContext
context) at SAS.OfficeAddin.OfficeAddinBase.PostProcessJob(JobContext
jobContext, Boolean promptOnErrors)
The issue arises when opening a SAS data source.
I'm using SAS Add-In for Microsoft Office version 7.100.0.2122.
Thanks,
Jordan

Sitecore is throwing a database node exception in the CD environment

WFFM works great in the CM environment.
In the CD environment, I unpacked the content inside of Web Forms for Marketers CD 8.2 rev. 161129.zip in my Website folder. I then:
On all the CD servers, in the \Website\App_Config\Include\Sitecore.Forms.Config file, remove or disable the following sections. <hook type="Sitecore.Form.Core.WffmActionHook, Sitecore.Forms.Core"/>
Removed the <event name="wffm:action:remote"> section as well.
I added <setting name="WFM.IsRemoteActions" value="true" /> and <setting name="WFM.IsRemoteActions" value="true" />.
In my connectionstrings.config, there is no connection name for master. We've decided to remove all references to master in the CD environment.
In the showconfig file, I see <setting name="WFM.MasterDatabase" value="web" patch:source="Sitecore.Forms.config" />.
I published the entire site from CM to CD. When I look at the page in the CD environment, I get the following exception:
Exception: System.InvalidOperationException
Message: Could not find configuration node: databases/database[#id='master']
Source: Sitecore.Kernel
at Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String format, Object[] args)
at Sitecore.Configuration.DefaultFactory.GetConfigNode(String xpath, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetDatabase(String name, Boolean assert)
at Sitecore.Configuration.DefaultFactory.GetDatabase(String name)
at Sitecore.Marketing.Definitions.Goals.Data.ItemDb.GoalDefinitionItemRepository..ctor(String databaseName, Boolean assumeActive, IDefinitionRecord
Mapper`1 mapper)
at Sitecore.Marketing.Definitions.Goals.Data.ItemDb.GoalDefinitionItemRepository..ctor(String databaseName, Boolean assumeActive)
Following this post, I truncated the links table in the Core database, and rebuilt it again. Still, no luck!
What am I doing wrong?
After going back and forth with Sitecore Support, they noted that this issue is not related to WFFM, but to the Goals definitions that cannot be loaded.
Response from Sitecore
The issue that SwitchMasterToWeb config leaves a reference to the Master database in node was registered as a bug in our bug tracking system.
To track the future status of this bug report, please use the reference number 98770
Important
Make sure the following changes are made ONLY in the CD environment(s).
Open \App_Config\Include\Sitecore.Marketing.config, and change the followings:
from <itemRepositoriesDatabase>master</itemRepositoriesDatabase> to <itemRepositoriesDatabase>web</itemRepositoriesDatabase>
Doing so, will cause a Sitecore.ContentSearch.Exceptions.IndexNotFoundException exception. Stack trace will include:
Exception: Sitecore.ContentSearch.Exceptions.IndexNotFoundException
Message: Index sitecore_marketingdefinitions_master was not found
Source: Sitecore.ContentSearch
at Sitecore.ContentSearch.ContentSearchManager.GetIndex(String name)
at Sitecore.Marketing.Search.BaseDefinitionSearchProvider`2..ctor(String indexName)
According to this article, sitecore_marketingdefinitions_master index should not be present on CD. To fix this issue, open \App_Config\Include\Sitecore.Marketing.Search.config, and change the following:
from <searchIndexName>sitecore_marketingdefinitions_master</searchIndexName> to <searchIndexName>sitecore_marketingdefinitions_web</searchIndexName>
Hit /admin/showconfig.aspx or use SIM to make a config xml and look for "master". You should not have any. Wherever it is, check the patch source and write a patch for that file. Maybe put it in Switchtomaster.config.

Field "Tracking" from the Form template is throwing an exception

I am having some issues getting the WFFM (Web Forms for Marketers) 8.1 to work in a Sitecore 8.1 solution .... and I guess the reason is the below error that I get on the Tracking field from the Advanced section (Standard fields).
Does anyone have a clue why I get this error on the clean WFFFM installation? Thank you in advance. (log below)
Exception:
[ArgumentNullException: Value cannot be null.
Parameter name: item]
`Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName) +63
Sitecore.Analytics.Data.Items.<GetDescendants>d__8.MoveNext() +98
System.Linq.WhereSelectEnumerableIterator 2.MoveNext() +118
System.Linq.<ConcatIterator>d__58 1.MoveNext() +178
System.Linq.WhereEnumerableIterator 1.MoveNext() +108
System.Linq.Enumerable.FirstOrDefault(IEnumerable 1 source) +147
Sitecore.Shell.Applications.Analytics.TrackingField.TrackingFieldDetailsPage.RenderEvents(HtmlTextWriter output, XDocument doc, IEnumerable 1 pageEventDefinitions, Boolean isGoals, Boolean isFailures) +362
Sitecore.Shell.Applications.Analytics.TrackingField.TrackingFieldDetailsPage.RenderTracking(HtmlTextWriter output, XDocument doc) +379
Sitecore.Shell.Applications.Analytics.TrackingField.TrackingFieldDetailsPage.OnLoad(EventArgs e) +409
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Control.LoadRecursive() +165
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498`
Update: tried to install the newest version of WFFM 8.1 Update 2 but I see the same issue. Also tried to install the WFFM against new clean Core and Master databases and I get an error I was previously getting .. Post condition failed.
This looks like there's an issue with your config.
One thing to check, make sure you have analyticsDefinitions="content" specified on the defintion of your shell site in your web.config
Failing this try to Deploy Marketing Definitions in Control Panel -> Analytics.
Finally managed to fix the issues with WFFM after upgrading from 7 to 8.1. The exception I was getting on the Tracking field was related to the answer above .. the analyticsDefinitions="content" attribute was missing from the shell website.
Also there was a bug related to the Tracking field, throwing an exception "Unrecognized guid format" which was crashing WFFM. The below article solved the second issue.
https://reasoncodeexample.com/2015/03/26/sitecore-linkdatabase-unrecognized-guid-format/

Sitecore Error: Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found

Has anyone ran into the issue below? Basically, I am trying to upgrade the Web forms for Marketers from 8.0-U3 to 8.0-U4(successful) to 8.1-Initial release (not successful).
The error was during the update installation process:
http://upgrade/sitecore/admin/UpdateInstallationWizard.aspx
It says:
The installation has encountered a critical error.
This Sitecore installation cannot be used for either testing or
production purposes until Sitecore support is contacted. Make sure to
download and include the file containing diagnostic information about
your Sitecore installation.
Server Error in '/' Application.
Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.
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: Sitecore.Exceptions.ConfigurationException: Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.
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:
[ConfigurationException: Could not create instance of type: Sitecore.Form.Core.WffmActionHandler. No matching constructor was found.]
Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +272
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +131
Sitecore.Events.EventSubscribers.Add(String eventName, XmlNode configNode) +545
Sitecore.Events.Event.GetConfigSubscribers() +564
Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters) +338
Sitecore.Data.DataProviders.Sql.SqlDataProvider.SetProperty(String parameterName, String value, CallContext context) +259
Sitecore.Data.DataProviders.DataProvider.SetProperty(String name, String value, CallContext context, DataProviderCollection providers) +124
Sitecore.Data.DataManager.SetProperty(String name, String value) +103
Sitecore.Web.Authentication.TicketManager.IsTicketExpired(Ticket ticket, Boolean useProlongation) +330
Sitecore.Web.Authentication.TicketManager.GetTicket(String ticketId, Boolean returnExpired) +93
Sitecore.Web.Authentication.TicketManager.IsTicketValid(String ticketId) +37
Sitecore.Shell.Web.ShellPage.IsLoggedIn(Boolean returnAfterLogin) +409
Sitecore.Shell.Web.UI.SecurePage.OnLoad(EventArgs e) +22
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1073.0
I was able to fixed the issue. I reinstalled the update package of WFFM 8.1. But prior to that, I copy and pasted the DLLs and configuration files of WFFM 8.1-Initial release to my instance before undergoing under run of update.
Edited: Root cause, forgot to update the Sitecore.Forms.config with the patch below:
<handler type="Sitecore.Form.Core.WffmActionHandler, Sitecore.Forms.Core" method="OnWffmActionEventFired" >
<param name="actionManager" ref="/sitecore/wffm/wffmActionExecutor" /> </handler>
In my case i had fixed by copying entire DLL from clean-sitecore installation folder, When more dig on it who is black sheep is below they are
Sitecore.Forms.Core.dll
Sitecore.Forms.Custom.dll
Sitecore.Forms.Mvc.dll
Above dll's version differed.

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
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.
There is something we needed to do with this. Have you changed from Lucene to Solr. It's was in the Solr.config we needed to change some values, although I thought this bug had been 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/