Title: AMP Validation Errors
Last modified: September 1, 2016

---

# AMP Validation Errors

 *  [rahulmishra85](https://wordpress.org/support/users/rahulmishra85/)
 * (@rahulmishra85)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/)
 * I got 3 errors through AMP validation extension which are listed below:
 * **1. The tag ‘script’ is disallowed except in specific forms. CUSTOM_JAVASCRIPT_DISALLOWED
   
   line 8, column 0
 * **2. The mandatory text (CDATA) inside tag ‘head > style[amp-boilerplate]’ is
   missing or incorrect. MANDATORY_AMP_TAG_MISSING_OR_INCORRECT
    line 9, column 
   0
 * **3. The mandatory tag ‘amphtml engine v0.js script’ is missing or incorrect.
   MANDATORY_AMP_TAG_MISSING_OR_INCORRECT
    line 106, column 96
 * Could any one please tell me how to rectify these errors for my website?
 * (Consider me as a new)
 * Thanks
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

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

 *  [neotrope](https://wordpress.org/support/users/neotrope/)
 * (@neotrope)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509469)
 * Disable any plugin like caching or CDN which minify the amp endpoint. Disable
   any plugin adding javascript to the amp page.
 * See the ‘page source’ of your AMP endpoint (e.g., post-name/amp ) to SEE what
   is actually there as good starting point.
 *  Thread Starter [rahulmishra85](https://wordpress.org/support/users/rahulmishra85/)
 * (@rahulmishra85)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509604)
 * Thanks for your reply. I will do it.
 * I also want to know, is there any way to check and verify **Google AMP Analytic**
   Code, whether it is working or not??
 *  [jureboga](https://wordpress.org/support/users/jureboga/)
 * (@jureboga)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509607)
 * I have a similar problem. The tag i have in page is:
 * <script src=”//cdn.ampproject.org/v0.js” async></script>
 * The “https:” is gone, but i can’t identify the cause. I’m using some plugin like“
   Force HTTPS” but i’m using SAGE Framework too and i think it’s related to it.
 * However, the easier solution will be a str_replace() of the whole HTML code, 
   or just the one related to the head… is there a way to do that?
 * Thanks.
 *  [neotrope](https://wordpress.org/support/users/neotrope/)
 * (@neotrope)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509609)
 * [@jureboga](https://wordpress.org/support/users/jureboga/)
    you likely want to
   start your own support topic. Note that if your site is properly setup for https,
   then the AMP plugin will set the link with https; if it can’t figure it out then
   it falls back to let the cdn determine the statu.
 * On my site, properly configured as https
 * `<script src="https://cdn.ampproject.org/v0.js" async></script>`
 * You need to set the https setting in your wp-config.php file if not set properly
   elsewhere, to show your domain URL explicitly as https. If your site is setup
   properly for https with a 301 redirect for non-https requests you have no need
   to “force https” otherwise.
 *  Thread Starter [rahulmishra85](https://wordpress.org/support/users/rahulmishra85/)
 * (@rahulmishra85)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509611)
 * On my site, it is also properly configured as https
 * <script src=”[https://cdn.ampproject.org/v0.js&#8221](https://cdn.ampproject.org/v0.js&#8221);
   async></script>
 *  [jureboga](https://wordpress.org/support/users/jureboga/)
 * (@jureboga)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509612)
 * Thank you [@neotrope](https://wordpress.org/support/users/neotrope/), i found
   the solution.
 * I removed Force HTTPS and configured WP: the problem was still there.
 * So i cloned the site and started to disable a plugin at time.
 * I found that the official CloudFlare plugin has a “HTTPS Protocol Rewriting: 
   On” option that caused the problem. Switching to “Off” was the solution.
 * Thanks again.
 *  [KevinBCarney](https://wordpress.org/support/users/kevinbcarney/)
 * (@kevinbcarney)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509628)
 * How did you guys determine when an AMP problem is fixed? Is there an AMP test
   you can submit a page to?
 * I have 22 pages generating AMP errors and right now all I know to do to test 
   if some action fixes the issue is to make the change, delete the error message,
   and check for error messages in a day or two.
 * How do I speed up the process?
 *  [neotrope](https://wordpress.org/support/users/neotrope/)
 * (@neotrope)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509630)
 * Test your page with the developer tools in chrome, and perhaps resubmit your 
   sitemap to force the pages to be re-read once fixed. 🙂
 *  Thread Starter [rahulmishra85](https://wordpress.org/support/users/rahulmishra85/)
 * (@rahulmishra85)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509682)
 * **Need help………**
 * **Is it right Google Analytic code for AMP or I am missing anything here?**
 * <amp-analytics type=”googleanalytics” id=”Account Name “>
    <script type=”application/
   json”> { “vars”: { “account”: “UA-12345678-9” }, “triggers”: { “trackPageviewWithAmpdocUrl”:{“
   on”: “visible”, “request”: “pageview”, “vars”: { “title”: “Write Page title here”,“
   ampdocUrl”: “write page url here” } } } </script> </amp-analytics>

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

The topic ‘AMP Validation 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

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

 * 9 replies
 * 4 participants
 * Last reply from: [rahulmishra85](https://wordpress.org/support/users/rahulmishra85/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/amp-validation-errors-3/#post-7509682)
 * Status: not resolved