Wordpress капча в контактной форме 7?

Привет, я использую контактную форму 7 с Really Simple 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>").

person brightmist.co.uk    schedule 09.03.2010    source источник


Ответы (1)


На форумах плагинов говорят, что нужно добавить эту строку в wp-config.php, чтобы предотвратить вставку тегов <p>, что, судя по вашему отчету об ошибках, похоже, решит некоторые проблемы с проверкой.

define( 'WPCF7_AUTOP', false );

Но также исправляйте другие ошибки, поскольку они имеют тенденцию к снежному кому и вызывают другие ошибки проверки: [Invalid]Проверка разметки artygirl.co.uk — W3C Markup Validator. Прокрутите вниз отчет о проверке, чтобы увидеть номера строк и исходный код.

person markratledge    schedule 09.03.2010