WFFM errors due to obsolete commands in the Sitecore.Forms.config file


Description

When using the Sitecore Web Forms For Marketers module 8.0.0 - 8.1.0, the following errors may appear in log files:

WARN Could not find type in ReflectionUtil.CreateObject: Sitecore.Forms.Core.Commands.View.Refresh.
ERROR Could not instantiate "Sitecore.Forms.Core.Commands.View.Refresh,Sitecore.Forms.Core" command object.

WARN Could not find type in ReflectionUtil.CreateObject: Sitecore.Forms.Core.Commands.[CommandName]
ERROR Could not instantiate "Sitecore.Forms.Core.Commands.View.[CommandName],Sitecore.Forms.Core" command object.

Solution

The errors occur because the WFFM configuration contains references to obsolete commands.

To remove the errors, comment out the following commands in the Sitecore.Forms.config file:

<command name="forms:datarefresh" type="Sitecore.Forms.Core.Commands.View.Refresh,Sitecore.Forms.Core" />
<command name="forms:selectfields" type="Sitecore.Forms.Core.Commands.Fields.SelectFields,Sitecore.Forms.Core" />
<command name="forms:opensession" type="Sitecore.Form.Core.Commands.OpenSession,Sitecore.Forms.Core" />