2010-03-09 101 views
0

嗨我使用真正簡單的CAPTCHA使用聯繫表單7,但它拋出以下驗證錯誤。 有沒有辦法解決這個問題?或者是否有另一個插件,或者我可以將它輸入到html中?WordPress的聯繫表格7中的captcha?

感謝您的幫助

問候

朱迪

# 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>"). 

回答

0

論壇上說要加入這一行的wp-config.php文件從停止<p>標籤插件插入時,它看起來像根據您的錯誤報告,它將解決一些驗證問題。

define('WPCF7_AUTOP', false); 

而且還解決您的其他錯誤,因爲他們往往越滾越大,並導致其他驗證錯誤: [Invalid]Markup Validation of artygirl.co.uk - W3C Markup Validator。在驗證報告中向下滾動查看行號和源代碼。