Title: AMP error (boilerplate)
Last modified: February 9, 2017

---

# AMP error (boilerplate)

 *  Resolved [Paysan Breton](https://wordpress.org/support/users/brugees/)
 * (@brugees)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/)
 * Hi,
    i got 2 errors in the search console : – The tag ‘head > style[amp-boilerplate]’
   is missing or incorrect, but required by ‘noscript > style[amp-boilerplate]’.
   and : – The mandatory tag ‘head > style[amp-boilerplate]’ is missing or incorrect.
 * Any ideas ?

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

 *  Plugin Author [Better Studio](https://wordpress.org/support/users/betterstudio/)
 * (@betterstudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8809169)
 * sHi dear,
    Did you updated it to latest version? I think that issues was fixed
   in new updates.
 * **Better**Studio, Ali
 *  Thread Starter [Paysan Breton](https://wordpress.org/support/users/brugees/)
 * (@brugees)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8809377)
 * no, always the same errors
    caan you test this page in the google amp console:
   [http://www.paysan-breton.fr/amp/2017/02/bien-etre-animal-la-fnsea-se-mobilise-au-travers-dune-projection-video-en-direct/](http://www.paysan-breton.fr/amp/2017/02/bien-etre-animal-la-fnsea-se-mobilise-au-travers-dune-projection-video-en-direct/)
 * there are 3 error messages. 2 for boilerplate and 1 for the css (autoptimize 
   issue ?)
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8809539)
 * hi guys;
    I’m autoptimize’s developer. AO currently bails from autoptimization
   based on this regex;
 * `<html[^>]*(?:amp|⚡)`
 * this fails on this plugin because amp is in caps:
 *     ```
       <!doctype html>
       <html lang="fr-FR" AMP>
       <head>
       ```
   
 * [@betterstudio](https://wordpress.org/support/users/betterstudio/); if can update
   the plugin to have `amp` instead of `AMP` at least you’ll have autoptimize out
   of the way automagically (i might add the `i` flag on the regex at a next release,
   but that might take another couple of months) 😉
 * hope this helps,
    frank
 *  Plugin Author [Better Studio](https://wordpress.org/support/users/betterstudio/)
 * (@betterstudio)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8811426)
 * Hi [@futtta](https://wordpress.org/support/users/futtta/)
    Thanks for reporting
   this,
 * Done: [https://github.com/better-studio/better-amp/commit/317424c102379bb52a160a18978abd7d6c69e9b6](https://github.com/better-studio/better-amp/commit/317424c102379bb52a160a18978abd7d6c69e9b6)
 * I will publish new update in next days.
    Thanks.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8811469)
 * you’re welcome! 🙂
 *  Thread Starter [Paysan Breton](https://wordpress.org/support/users/brugees/)
 * (@brugees)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8811487)
 * you are the best ! 😉

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

The topic ‘AMP error (boilerplate)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/better-amp_635660.svg)
 * [Better AMP - WordPress Complete AMP](https://wordpress.org/plugins/better-amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-amp/)
 * [Active Topics](https://wordpress.org/support/plugin/better-amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-amp/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Paysan Breton](https://wordpress.org/support/users/brugees/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/amp-error-boilerplate/#post-8811487)
 * Status: resolved