Title: Disallowed attribute errors on random posts
Last modified: May 10, 2018

---

# Disallowed attribute errors on random posts

 *  [Scott](https://wordpress.org/support/users/magius72/)
 * (@magius72)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/)
 * Have had three separate errors — identified on two of my pages by Google Search
   Console — that have been an issue for the past 3-4 months now.
 * Errors:
 * Disallowed attribute in AMP tag ‘amp-mustache extension .js script’
    Disallowed
   attribute in AMP tag ‘amp-form extension .js script’ Disallowed attribute in 
   HTML tag ‘amphtml engine v0.js script’
 * URLs affected:
 * [https://scottbrills.com/openworld-magazine-podcast-interview/amp/](https://scottbrills.com/openworld-magazine-podcast-interview/amp/)
   
   [https://scottbrills.com/the-royal-hotel-hachijojima-japan/amp/](https://scottbrills.com/the-royal-hotel-hachijojima-japan/amp/)
 * (No idea why out of all the posts on my blog it’s just those two that have the
   issues…)
 * Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdisallowed-attribute-errors-on-random-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [prodport](https://wordpress.org/support/users/prodport/)
 * (@prodport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10266961)
 * I’m having the same issue. For me, it looks the issue is I’m deferring the JS.
 * I used the testing tool at [https://search.google.com/test/amp](https://search.google.com/test/amp)
 * If I plug your page in this tool, I also see the error about “defer” Line 31.
 * I’m not using the same AMP plugin you are, but I do have some plugins that defer
   scripts. I’m thinking that may be my issue.
 *  [prodport](https://wordpress.org/support/users/prodport/)
 * (@prodport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10267119)
 * Just a follow up. My staging site showed no errors so I figured it was a plugin
   setting.
 * I had a plugin called “**Async JavaScript**” that my host had installed. I changed
   is so the AMP scripts that were showing as “defer” were changed to “async”. That
   cleared the issue for me and the pages validate.
 * **But the Google test page I referenced above seems to hold on to a cached version.**
   I had to go back to Google Search Console, click into the page with issues and
   then click “**TEST LIVE VERSION**” at the bottom right. It’s on that Issue Detail
   panel.
 *  Thread Starter [Scott](https://wordpress.org/support/users/magius72/)
 * (@magius72)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10267303)
 * I’m using a similar concatenation/minification plugin called Fast Velocity Minify.
 * I can input files to not minify in the plugin options — which I’m guessing would
   fix this issue — but not sure what files/paths to put there… (like, what file
   does this refer to: amp-mustache extension .js script ?)
    -  This reply was modified 8 years, 1 month ago by [Scott](https://wordpress.org/support/users/magius72/).
 *  [prodport](https://wordpress.org/support/users/prodport/)
 * (@prodport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10267450)
 * On my Google Search Console, if I click through to a URL and the Issue Details
   panel, I can see a script reference in pink.
 * I’ve just grabbed those offending scripts and plugged in the whole URL. For example,
   on my plugin, there is a dedicated box to have a script run ASYNC. So, I entered
   the full path.
 * [https://cdn.ampproject.org/v0.js](https://cdn.ampproject.org/v0.js)
 * Your plugin probably has some settings and different pages use different AMP 
   scripts. I’ve pulled out 4 for my site so far. I don’t think minification is 
   the issue. It wasn’t for me.
 * If you’re not sure the setting, I would contact the Velocity plugin author or
   test on a staging site if you have one.
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10268983)
 * Try deactivating the velocity script and then test for AMP page validity using
   this
 * [https://search.google.com/test/amp](https://search.google.com/test/amp)
 *  Thread Starter [Scott](https://wordpress.org/support/users/magius72/)
 * (@magius72)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10299934)
 * UPDATE: added exceptions for the Javascripts:
 * [https://cdn.ampproject.org/v0.js](https://cdn.ampproject.org/v0.js)
    [https://cdn.ampproject.org/v0/amp-form-latest.js](https://cdn.ampproject.org/v0/amp-form-latest.js)
   [https://cdn.ampproject.org/v0/amp-mustache-latest.js](https://cdn.ampproject.org/v0/amp-mustache-latest.js)
 * to the Fast Velocity Minify plugin and that seems to do the trick! Thanks for
   the assistance.
    -  This reply was modified 8 years, 1 month ago by [Scott](https://wordpress.org/support/users/magius72/).
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10302316)
 * Hello [@prodport](https://wordpress.org/support/users/prodport/)
 * Can you please try the suggestion given by [@magius72](https://wordpress.org/support/users/magius72/)
   and check if it works or not.
 *  [prodport](https://wordpress.org/support/users/prodport/)
 * (@prodport)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10305541)
 * Hi,
 * Sorry if I wasnt’ clear in my earlier message, but I don’t use this plugin. And,
   I was able to get it to work when I stopped using “defer”
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10306566)
 * Hello [@prodport](https://wordpress.org/support/users/prodport/)
 * I can understand that you are facing issues while AMPforWP and defer.
 * Can you please contact me on [team@magazine3.com](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/team@magazine3.com?output_format=md)
   so I will make sure your issue gets solved and you will use our plugin without
   any issues and problem?
 *  Thread Starter [Scott](https://wordpress.org/support/users/magius72/)
 * (@magius72)
 * [8 years ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10316077)
 * UPDATE: actually, nothing got fixed — it just created more errors, on more pages!
   haha
 * Back to square one…
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10316122)
 * Hello [@magius72](https://wordpress.org/support/users/magius72/)
 * Can you please contact me on [team@magazine3.com](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/team@magazine3.com?output_format=md)
   so I can troubleshoot your issue personally and will solve it for you?
 *  Thread Starter [Scott](https://wordpress.org/support/users/magius72/)
 * (@magius72)
 * [8 years ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10316139)
 * Will do, thanks.
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10316161)
 * Hello [@magius72](https://wordpress.org/support/users/magius72/)
 * Thank you for contacting will look into this issue there personally and will 
   solve it for you.

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

The topic ‘Disallowed attribute errors on random posts’ 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/)

 * 13 replies
 * 4 participants
 * Last reply from: [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/disallowed-attribute-errors-on-random-posts/#post-10316161)
 * Status: not resolved