「Sitecore.Forms.config」ファイルに廃止されたコマンドの参照があるためWFFM エラーが発生する


説明

「Sitecore Web Forms For Marketers」モジュールのバージョン 8.0.0 ~ 8.1.0 を使用する際に、ログ ファイルに次のエラーが記録される場合があります。

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.

解決策

エラーは、WFFMの構成に廃止されたコマンドへの参照が含まれているために発生します。

エラーを除去するには、「Sitecore.Forms.config」ファイルにおける次のコマンドをコメント アウトしてください。

<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" />