我正在使用“ 面向营销人员的 Web 表单 2.5 修订版 141014 ”,而 创建表格我正在服用验证码字段 , 但是 验证码图像未在前端呈现 .
Screenshot Link
我究竟做错了什么??
最佳答案
您是否按照安装后步骤中的要求修改了 Web.config?
- Add the following nodes to the Web.config:
- for IIS 6.x under the configuration\system.web\httpHandlers node
- for IIS 7.x and up under the configuration\system.webServer\handlers node
如果你这样做了,你会同时使用 WFFM 和 WeBlog 模块吗?
问题是微博使用 preprocessRequest 站点核心管道来解析 CaptchaImage。此管道没有准备好 session ,因此 WFFM 验证码(默认情况下将数据存储在 session 中)在这种设置中不起作用。
解决方案只是删除
<preprocessRequest>
<processor patch:before="*[1]" type="Sitecore.Modules.WeBlog.Pipelines.CaptchaProcessor,Sitecore.Modules.WeBlog"/>
</preprocessRequest>
来自 WeBlog.config 文件。
关于webforms - 验证码图像未以 Sitecore Web 表单呈现给营销人员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28046065/