Title: AMP Validation errors after recent update
Last modified: May 7, 2018

---

# AMP Validation errors after recent update

 *  Resolved [antongorlin](https://wordpress.org/support/users/antongorlin/)
 * (@antongorlin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/)
 * My site has been running for months like it is running now. And all of a sudden
   I’ve got many AMP validation errors just last week.
    1. The tag ‘FORM [method=POST]’ requires including the ‘amp-form’ extension JavaScript.
       <br/>
        Sample page url attached
    2. Disallowed attribute in HTML tag ‘FORM [method=POST]'<br/>
        Same page
    3. Disallowed attribute in HTML tag ‘input'<br/>
        Sample page: [https://antongorlin.com/1-day-photography-workshops-sydney/amp/](https://antongorlin.com/1-day-photography-workshops-sydney/amp/)
 * Any ideas how to fix?
    -  This topic was modified 8 years, 1 month ago by [antongorlin](https://wordpress.org/support/users/antongorlin/).
    -  This topic was modified 8 years, 1 month ago by [antongorlin](https://wordpress.org/support/users/antongorlin/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-validation-errors-after-recent-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10254491)
 * I haven’t looked in detail but it may be because you are missing this from the
   head section unless I didn’t spot it
 * `<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-
   form-0.1.js"></script>`
 * You can put that code in using a simple action in your functions.php file and
   see it it works or I think you may be able to simply paste the script into the
   advanced setting box
 *     ```
       function amp_header_special() {
       	echo '<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>';
       }
       add_action( 'amp_post_template_head', 'amp_header_special');
       ```
   
 * Then see if the page validates using the AMP validator.
 *  Thread Starter [antongorlin](https://wordpress.org/support/users/antongorlin/)
 * (@antongorlin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10255901)
 * thanks, frenchomatic. Unfortunately, it didn’t make any difference at all, I’ve
   checked multiple pages.
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10259291)
 * `<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-
   form-0.1.js"></script>`
 * Do you guys see this in the header?
    -  This reply was modified 8 years, 1 month ago by [frenchomatic](https://wordpress.org/support/users/frenchomatic/).
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10259385)
 * NOTE: If you are not the original poster and you are not helping the original
   poster, and you are simply replying “I have the same problem” then please don’t.
 * Start your own support topic instead. You can do so here.
 * [https://wordpress.org/support/plugin/accelerated-mobile-pages/#new-post](https://wordpress.org/support/plugin/accelerated-mobile-pages/#new-post)
 * This is per the forum guideline.
 * [https://wordpress.org/support/guidelines/#post-in-the-best-place](https://wordpress.org/support/guidelines/#post-in-the-best-place)
 *  Thread Starter [antongorlin](https://wordpress.org/support/users/antongorlin/)
 * (@antongorlin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10259947)
 * yes, sure, I checked the actual page afterwards and the script was there. But
   the validations still fail with the same errors.
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10270192)
 * Hello [@antongorlin](https://wordpress.org/support/users/antongorlin/),
 * I have checked the sample page which you have provided and there is no validation
   error.
 * Can you please check again.
 * Please send the exact URL where you are facing this validation error so I can
   check it.
 *  Thread Starter [antongorlin](https://wordpress.org/support/users/antongorlin/)
 * (@antongorlin)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10272635)
 * looks like yesterday’s update fixed all issues. Thanks!
 *  [psandeep](https://wordpress.org/support/users/psandeep/)
 * (@psandeep)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10638567)
 * but i am still getting same error …its says ‘Disallowed attribute in HTML tag‘
   FORM [method=POST]’.. Plz help how to fix this….here is the url sample…”[https://newsscams.com/%E0%A4%B8%E0%A4%AA%E0%A4%BE-%E0%A4%A8%E0%A5%87%E0%A4%A4%E0%A4%BE-%E0%A4%B8%E0%A5%81%E0%A4%96%E0%A4%B0%E0%A4%BE%E0%A4%AE-%E0%A4%B8%E0%A4%BF%E0%A4%82%E0%A4%B9-%E0%A4%95%E0%A4%BE-%E0%A4%86%E0%A4%97/&#8221](https://newsscams.com/%E0%A4%B8%E0%A4%AA%E0%A4%BE-%E0%A4%A8%E0%A5%87%E0%A4%A4%E0%A4%BE-%E0%A4%B8%E0%A5%81%E0%A4%96%E0%A4%B0%E0%A4%BE%E0%A4%AE-%E0%A4%B8%E0%A4%BF%E0%A4%82%E0%A4%B9-%E0%A4%95%E0%A4%BE-%E0%A4%86%E0%A4%97/&#8221);
    -  This reply was modified 7 years, 9 months ago by [psandeep](https://wordpress.org/support/users/psandeep/).
 *  [wordp4ln](https://wordpress.org/support/users/wordp4ln/)
 * (@wordp4ln)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10770748)
 * Hi, I have the same issue and it’s not fixed by the update.
    Here is the message
   from the search console : Disallowed attribute in HTML tag ‘FORM [method=POST]’
   First detected: 9/7/18 Status: Error
 * The previous fix didn’t worked neither. Could you help me out please ?
    -  This reply was modified 7 years, 8 months ago by [wordp4ln](https://wordpress.org/support/users/wordp4ln/).
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10776731)
 * Hi [@wordp4ln](https://wordpress.org/support/users/wordp4ln/),
 * Can you share the URL? so that I can check and help you to resolve them.
 *  [wordp4ln](https://wordpress.org/support/users/wordp4ln/)
 * (@wordp4ln)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10777921)
 * Sorry, I forgot the URL…
 * Here is examples :
    [https://mapatisserie.fr/recette/eclairs/recette-eclair-chocolat/amp/](https://mapatisserie.fr/recette/eclairs/recette-eclair-chocolat/amp/)
   [https://mapatisserie.fr/recette/divers/recette-biscuit-croustillant-fond-de-gateau-entremet/amp/](https://mapatisserie.fr/recette/divers/recette-biscuit-croustillant-fond-de-gateau-entremet/amp/)
   [https://mapatisserie.fr/recette/macarons/recette-macaron-chocolat-au-lait/amp/](https://mapatisserie.fr/recette/macarons/recette-macaron-chocolat-au-lait/amp/)
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10783683)
 * Hi [@wordp4ln](https://wordpress.org/support/users/wordp4ln/),
 * You are trying to add some form due to which you are facing the validation issues.
   
   Please check where and how you are adding the form and make sure it is compatible
   with AMP. AMP has some restrictions on Forms, so you can’t directly add them,
   you have to add the AMP compatible Forms. Please check this for more info: [https://ampbyexample.com/components/amp-form/](https://ampbyexample.com/components/amp-form/)
 *  [wordp4ln](https://wordpress.org/support/users/wordp4ln/)
 * (@wordp4ln)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10783721)
 * Hello @Marquas,
 * Thanks for your fast reply. I don’t have much forms on my webpage, I guess just
   2 : one for the comments (managed by wpdiscuz) and I don’t think the problem 
   comes from it.
    One other form is the newsletter subcription, a widget from mailpoet.
   Any advices to help me to debug this ?
 * Thx !
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10787842)
 * Hi [@wordp4ln](https://wordpress.org/support/users/wordp4ln/),
 * I think it is due to mailpoet widget, as I said above AMP has some restrictions
   regarding the Forms. So you have to be sure that forms which you are adding should
   be according to AMP rules.
 * So I would suggest you to check if the form is AMP valid or not.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘AMP Validation errors after recent update’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [AMP validation](https://wordpress.org/support/topic-tag/amp-validation/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 14 replies
 * 7 participants
 * Last reply from: [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/amp-validation-errors-after-recent-update/#post-10787842)
 * Status: resolved