Title: AMP validation had errors
Last modified: August 31, 2016

---

# AMP validation had errors

 *  Resolved [Ivan](https://wordpress.org/support/users/calvin13/)
 * (@calvin13)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/)
 * I have the following AMP validation errors after update to AMP 0.3.1
 * tx.error @ validator.js:320
    (anonymous function) @ validator.js:361 f.ca @ validator.
   js:295 Mw @ validator.js:299 Hw @ validator.js:299 Aw.vb @ validator.js:299 xw
   @ validator.js:292 validator.js:320
 * The attribute ‘type’ in tag ‘script type=application/ld+json’ is set to the invalid
   value ‘text/javascript’.
 * The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid
   value ‘//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic
   |Open+Sans:400,700,400italic,700italic’. (see [https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#custom-fonts](https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#custom-fonts))
 * The attribute ‘src’ in tag ‘amphtml engine v0.js script’ is set to the invalid
   value ‘//cdn.ampproject.org/v0.js’. (see [https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt](https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt))
 * The attribute ‘type’ in tag ‘script type=application/ld+json’ is set to the invalid
   value ‘text/javascript’.
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

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

 *  Thread Starter [Ivan](https://wordpress.org/support/users/calvin13/)
 * (@calvin13)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101252)
 * After some research, i think my problem is related to cloudflare….
 *  [sarosuf](https://wordpress.org/support/users/lubimow/)
 * (@lubimow)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101294)
 * Hi Ivan.
    You write that the problem may be related to cloudflare and what do
   you do? Does this help?
 *  Thread Starter [Ivan](https://wordpress.org/support/users/calvin13/)
 * (@calvin13)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101297)
 * I wrote to cloudflare’s support in order to provide a solution (I’m awaiting 
   response)
 * I have seen that If you desactive some of the features of cloudflare, certain
   errors disappear. In my case: Google Analytics App
 *  Thread Starter [Ivan](https://wordpress.org/support/users/calvin13/)
 * (@calvin13)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101304)
 * The solution in my case:
 * I have to disable Rocket Loader in Cloudflare, and the app for Google Analytics(
   also in Cloudflare).
 * 🙂
 *  [sarosuf](https://wordpress.org/support/users/lubimow/)
 * (@lubimow)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101307)
 * I have it off – but swears only on advertising adsense
 *  Thread Starter [Ivan](https://wordpress.org/support/users/calvin13/)
 * (@calvin13)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101308)
 * Also, i have had to do another thing.
 * tick “off” in the cloudflare plugin “HTTPS Protocol Rewriting”
 *  [sarosuf](https://wordpress.org/support/users/lubimow/)
 * (@lubimow)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101309)
 * I do not have this plugin. I am “page rules” did not write this kind of cache
   pages. Anyway I swear on Google ads
 *  [silfiriel](https://wordpress.org/support/users/silfiriel/)
 * (@silfiriel)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101437)
 * So, did turning of Rocket Loader and Off on the https protocol rewriting fixed
   the errors?
 * I am wondering if WP Super Cache is causing me problems…
 *  [TRDK29](https://wordpress.org/support/users/trdk29/)
 * (@trdk29)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101442)
 * [@ivan](https://wordpress.org/support/users/ivan/) – great info. Thanks
 * Did you get a feedback from CloudFlare?
 *  [hansollkim](https://wordpress.org/support/users/hansollkim/)
 * (@hansollkim)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101540)
 * I have some validating error with AMP Validator, and I turned off HTTPS Protocol
   Rewriting, then I passed test. Since I using strict SSL, I expect there’s no 
   negative effects will happen.
 * Thank you for tip.
 *  [teknofilo](https://wordpress.org/support/users/teknofilo/)
 * (@teknofilo)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101541)
 * Turning off HTTPS Protocol rewriting also solved my validation problems

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

The topic ‘AMP validation had errors’ 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

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

 * 11 replies
 * 6 participants
 * Last reply from: [teknofilo](https://wordpress.org/support/users/teknofilo/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-had-errors-1/#post-7101541)
 * Status: resolved