Sitecore WFFM-Capcha-值不能为null
我正在使用Sitecore 8 update 3,目前我在WFFM表单中添加了一个capcha,并按下“音频”,但其显示错误如下:Sitecore WFFM-Capcha-值不能为null,sitecore,sitecore8,Sitecore,Sitecore8,我正在使用Sitecore 8 update 3,目前我在WFFM表单中添加了一个capcha,并按下“音频”,但其显示错误如下: [ArgumentNullException: Value cannot be null. Parameter name: input] System.IO.BinaryReader..ctor(Stream input, Encoding encoding, Boolean leaveOpen) +13905648 Sitecore.
[ArgumentNullException: Value cannot be null.
Parameter name: input]
System.IO.BinaryReader..ctor(Stream input, Encoding encoding, Boolean leaveOpen) +13905648
Sitecore.Form.Core.Media.Wave.Concat(StreamList inStreams, BinaryWriter to) +193
Sitecore.Form.Core.Web.CaptchaAudionHandler.DoSpeech(String text, String fileName) +452
Sitecore.Form.Core.Web.CaptchaAudionHandler.ProcessRequest(HttpContext context) +618
Sitecore.Form.Core.Pipeline.RequestProcessor.CaptchaResolver.ProcessRequest(HttpContext context) +358
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +508
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92
我如何解决这个问题
更新:
在我使用名为Sitecore.Support.432676(Sitecore攀登者建议)的包之后。我在CaptchaField.cshtml文件中更新了javascript,音频现在可以正常工作了
$scw(文档).ready(函数(){
$scw(“.选择器字段验证码播放”)。单击(
功能(事件){
event.preventDefault();
var容器=$scw(“.field captcha audio”);
container.empty();
容器。附加(“”);
}
);
});
但点击按钮后刷新。所有数据均为空,因为在文件sc.fields-captcha.js中:
$scw(this.element)。查找(“.selector字段验证码刷新”)。单击(函数(事件){
event.preventDefault();
window.location.reload();
});
谢谢你的建议。谢谢记住执行WFFM安装后步骤的最后一步:
- 对于配置\system.web\httpHandlers节点下的IIS 6.x
- 对于IIS 7.x及更高版本,在configuration\system.webServer\handlers节点下
web.config
进行了必要的修改以添加CaptchaImage
和captchaudio
处理程序?@jammykam,是的,我做了