Sitecore WFFM CD gives "Could not find configuration node: database / database [@id = 'master']"

The Sitecore WFFM page in the CMS is working (connected to the Master). On CD all pages work, but when we go to the WFFM page we get the error Could not find configuration node: database / database [@id = 'master'] It looks like the WFFM on the CD is looking at the master. There is no master in the connection string as it is CD. I think this config is causing the problem (Sitecore.Marketing.Definitions.MarketingAssets.Repositories.config). Are there any missing deployment steps on the CD?

This error was shown on the page (part of it):

Sitecore.Configuration.DefaultFactory.CreateObject (String configPath, String [], Boolean Assertion) +615 Sitecore.WFFM.Abstractions.Dependencies.DependenciesManager.Resolve (String Path) +24 Sitecore.Form.Core.Ascx.Controls.SimpleForm .. ctor () +26 Sitecore.Form.Web.UI.Controls.SitecoreSimpleForm..ctor (item element) +21

This is taken from the error logs

Exception: System.InvalidOperationException Message: Could not find configuration node: databases / database [@id = 'master'] Source: Sitecore.Kernel at Sitecore.Configuration.DefaultFactory.GetConfigNode (String xpath, Boolean assert) in Sitecore.Configuration .DefaultFactory.CreateObject (String configPath, String [], boolean assertion) 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 acceptActive, IDefinitionRecordMapper`1 mapper) in Sitecore.Marketing.Definitions.Goals.Data.ItemDb.GoalDefinitionItemRepository..ctor (String databaseName), Boolean

+3


source to share


2 answers


  • Make sure this is done: (taken from the official installation guide) Additional WFFM steps for content delivery (CD) servers:

Copy the contents of the "Web Forms for Marketers CD 8.2 rev.170413.zip" file to the website root On all CD servers, in the \ Website \ App_Config \ Include \ Sitecore.Forms.Config file, delete or disable the following sections: Under delete: enter image description here In the section, delete: enter image description here

Add the following node section to the section:



 <setting name="WFM.IsRemoteActions" value="true" />Make sure this setting is set as follows. <setting name="WFM.MasterDatabase" value="web" />

      

  1. SwitchMasterToWeb.config this may require configuration. So you need to check the log file first. In our case, we found that some "master" link was not added to SwitchMasterToWeb.config, so we had to add it (so the wizard changed to a website). Some people will contact Sitecore directly, and Sitecore gave them a customization for them. as stated here
+1


source


Include a config configuration file SwitchMasterToWeb.config

in CD environments. This file makes it easy to customize your Sitecore CD instances by removing any references to the main database from the Sitecore configuration files.

To include the file SwitchMasterToWeb.config

, rename it with a .config extension.



It's also a good idea to rename the file SwitchMasterToWeb.config

or folder containing it so that it is applied after any other included files have links to the main database. EG. move it to the "zzz" folder in the folder App_Config/Include

.

+1


source







All Articles