联系表格7的Wordpress验证码?

时间:2010-03-09 15:38:12

标签: wordpress forms plugins captcha contact

您好我正在使用联系表单7和真正简单的CAPTCHA,但它会引发以下验证错误。 有没有办法来解决这个问题?或者是否有另一个插件或者我可以将其输入到html中吗?

感谢您的帮助

此致

朱迪

    #  Line 261, Column 84: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag

…llenge_captcha-508" value="20073138" /><img alt="captcha" src="http://www…

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
# Error Line 261, Column 243: document type does not allow element "img" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag

…/20073138.png" class="wpcf7-captcha-captcha-508" width="72" height="24" /><br/>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
# Error Line 261, Column 248: document type does not allow element "br" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag

…/20073138.png" class="wpcf7-captcha-captcha-508" width="72" height="24" /><br/>

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
# Error Line 262, Column 50: document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag

…="wpcf7-form-control-wrap captcha-508"><input type="text" name="captcha-508" v…

✉

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

1 个答案:

答案 0 :(得分:0)

插件论坛说要将此行添加到wp-config.php以阻止插入<p>标记,这看起来会解决一些验证问题,根据您的错误报告。

define( 'WPCF7_AUTOP', false );

但也要修复您的其他错误,因为它们往往会滚雪球并导致其他验证错误: [Invalid]Markup Validation of artygirl.co.uk - W3C Markup Validator。在验证报告中向下滚动以查看行号和源代码。