Title: numerous validation errors in google console
Last modified: May 9, 2018

---

# numerous validation errors in google console

 *  Resolved [the5krunner](https://wordpress.org/support/users/the5krunner/)
 * (@the5krunner)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/)
 * AMP: Version 0.7.0
    Yoast Glue : Version 0.4.3 Yoast: Version 7.4.2
 * I have HUNDREDS of pages which now all have warning in google console. previously
   there were none.
    eg [https://the5krunner.com/2018/05/05/on-my-wrist-this-month-2/amp/](https://the5krunner.com/2018/05/05/on-my-wrist-this-month-2/amp/)
 * in wordpress POSTS I get this error:
    “Warning: There is content which fails 
   AMP validation; it will be stripped when served as AMP. Debug
 * Invalid elements: script (2)”
 * It looks to me like these erros all come from AMAZON scripts that I have inserted.
   They are standard amazon affiliate scripts
 * There is no way that i can change these scripts. I would lose all revenues. in
   any case there are too many to change.
 * this only happended since the last AMP upgrade to v0.7
 * I would imagine there are a LARGE number of people with the same issue as me.
 * I imagine that google will relatively soon demote my pages for MOBILE…which would
   be disastrous.
 * any help appreciated
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnumerous-validation-errors-in-google-console%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10263040)
 * The warning is only there to inform you that the `script` tags are being removed.
   The AMP page served from your site does not include those `script` tags, so Google
   will not see them and you won’t get demoted.
 * For more, see [https://wordpress.org/support/topic/warning-there-is-content-which-fails-amp-validation/](https://wordpress.org/support/topic/warning-there-is-content-which-fails-amp-validation/)
 * In v0.7.1 we’ll remove the validation warning message unless `amp` theme support
   is present. In v1.0 we’ll be adding the ability to ignore specific validation
   errors.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10263047)
 * I see the validation errors:
 * * The attribute ‘defer’ may not appear in tag ‘amphtml engine v0.js script’.
   *
   The attribute ‘defer’ may not appear in tag ‘amp-iframe extension .js script’.
   Learn more.
 * [https://validator.ampproject.org/#url=https%3A%2F%2Fthe5krunner.com%2F2018%2F05%2F05%2Fon-my-wrist-this-month-2%2Famp%2F](https://validator.ampproject.org/#url=https%3A%2F%2Fthe5krunner.com%2F2018%2F05%2F05%2Fon-my-wrist-this-month-2%2Famp%2F)
 * This is due to a plugin you have which adds `defer` attributes for performance,
   but it is doing so incorrectly. Do you have such a plugin? What plugins do you
   have active?
 *  Thread Starter [the5krunner](https://wordpress.org/support/users/the5krunner/)
 * (@the5krunner)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10307164)
 * thank you. i thought it was something like that but did not have the understanding
   to progress AND to know what i was doing..
 * yes i have the “Async JavaScript” plugin active and set to DEFER. I have just
   changed to ASYNC.
 *  Thread Starter [the5krunner](https://wordpress.org/support/users/the5krunner/)
 * (@the5krunner)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10307173)
 * to clarify: i have made that change to BOTH “Async JavaScript Method” and to “
   jQuery”
 * i’ve no idea if that is the right thing to do
 *  Thread Starter [the5krunner](https://wordpress.org/support/users/the5krunner/)
 * (@the5krunner)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10307433)
 * now all the pages error out: “amphtml engine v0.js script”
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10311475)
 * I recommend deactivating the Async JavaScript plugin.

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

The topic ‘numerous validation errors in google console’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [script](https://wordpress.org/support/topic-tag/script/)

 * 6 replies
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/numerous-validation-errors-in-google-console/#post-10311475)
 * Status: resolved