Support » Plugin: AMP for WP - Accelerated Mobile Pages » Problem with wp rocket

  • Resolved Pierre236


    Just for user who use WP Rocket and critical css, if you update to the last version all your AMP page will be invalid :

    The message i have on google search console after last update :

    “Balisage AMP manquant ou incorrect
    Le texte obligatoire (CDATA) dans la balise “head > style[amp-boilerplate] – old variant” est manquant ou incorrect.
    1 instance
    Ligne 1:46
    <style id=”rocket-critical-css”>@font-face{font-family:dashicons;src:url(../fonts/dashicons.eot)}.dashicons{display:inline-block;width:20px;height:20p”

    Then i just restore the other version of wp rocket and the problem was solved.

    I write to wp rocket support about this problem and hope they’ll find solution.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Ahmed Kaludi


    Hi @romeoo

    It’s happening because of WP Rocket’s Latest Update.

    They have made an update which is causing the issues, they should be making it compatible with AMPforWP.

    I have contacted them, We will work with WP Rocket team to make sure that your issues are solved.

    Thread Starter Pierre236


    Hi Ahmed,

    Yes they say they’ll make new update next week, good if you work together!


    Plugin Author Ahmed Kaludi


    Yes! @pierreto

    If WP companies work together with each other, then we can serve better to the community.

    Hello. I was having the same issue and am happy to report that things went back to normal and tests of my AMP pages are all returning valid since upgrading to version 2.11.6 of WP-Rocket, released just now.

    Plugin Author Ahmed Kaludi


    Hi @enxaqueca

    I’m glad to know that!

    I think this same thing might be occurring with W3Total Cache.
    This is the error:
    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-
    Here is one of the broken urls.
    Is this a similar issue? Seems too timely to be unrelated.
    Thanks in advance. Love your plugin!

    Nevermind! All I needed to do was click the meta data button on the SEO tab and it all started working!

    Plugin Author Ahmed Kaludi



    I didn’t understand that solution.

    If you could share your problem along with the answer, then it would help others as well.



    I had the same problem on my website but with the last plugin update it was fixed,thanks.

    Plugin Contributor ampforwp


    Hi Manubarrero,

    You are welcome and thank you for the update.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with wp rocket’ is closed to new replies.