• Hi, all of my blog posts are getting this same error.

    For no reason the boilerplate has changed to a normal css script.

    Do anyone know how to solve this?

    The page I need help with: [log in to see the link]

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

    (@ahmedkaludi)

    That’s because some performance plugin is trying to minify and make changes which is done incorrectly.

    Can you list down the plugins that you are using?

    Thread Starter gabrielsw

    (@gabrielsw)

    Thank you for the answer!

    Im using:
    – AMP Cache
    – Asset CleanUp
    – Async Javascript
    – Autoptimize
    – Yoast SEO
    – Lazy Load
    – WP Super Cache

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Try to deactivate
    – Asset CleanUp
    – Async Javascript

    and see if that fixes the issue, if yes,

    then use the plugin manager from the AMP options to turn just those plugins off and it will solve it for you.

    AsyncJS does not change media-attributes of CSS (it only acts on JS).

    hope this helps,
    frank (asyncjs dev)

    Thread Starter gabrielsw

    (@gabrielsw)

    I already tried to deactivate Asset CleanUp, it didnt make any difference.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Try to deactivate all the plugins.

    And Clear the cache properly.

    Do you use any 3rd party optimization services or something like that?

    Thread Starter gabrielsw

    (@gabrielsw)

    Found the error.

    It was the Autoptimize, there is any way to disable this plugin only in AMP pages?

    errr … AO by default is disabled on AMP-pages based on the is_amp_endpoint() conditional (main test) and on the existence of amp or ? in the <html tag (backup test). @ahmedkaludi any reason why this would not work?

    frank (ao dev as well)

    Thread Starter gabrielsw

    (@gabrielsw)

    Yes frank, looking for a answer i found that AO is disabled on AMP.

    But i dont know why, it changes only one line that makes all the difference.

    I’ve installed “accelerated mobile pages”, but can’t reproduce the problem (yet) @gabrielsw

    What are the options you have active for accelerated mobile pages @gabrielsw ? do you e.g. have “Convert AMP to WP theme (Beta)” or “AMP Takeover (Beta)” active? Anything else I could/ should change?

    Thread Starter gabrielsw

    (@gabrielsw)

    Lets go!

    General tab:

    • Enable only in Posts, Archives (Category and Tags).
    • Convert AMP to WP theme (Beta) – DISABLED.
    • AMP Takeover (Beta) – ENABLED.

    AMPforWP Pagebuilder tab:

    • AMPforWP PageBuilder – ENABLED.

    SEO tab:

    • General, everything disabled.
    • SEO Plugin integration with Yoast and everything enabled.
    • URL Inspection Tool Compatibility enabled.

    Performance tab:

    • Minify enabled.

    Análises tab:

    • Google analytics enabled with IP Anonymization.

    Contact Form tab:

    • Contact Form 7 Support enabled.

    Comments tab:

    • Display on posts enabled.
    • Disqus enabled.
    • Host on AMPforWP API enabled.

    Advance Settings tab:

    • Change Internal Links to AMP enabled.
    • Smooth Scrolling For Links enabled.
    • Featured Image from The Content enabled.
    • Duplicate Featured Image enabled.
    • Retina Images enabled.
    • Plugin Update Notification Bar enabled.
    • This reply was modified 5 years, 7 months ago by Marius L. J.. Reason: Fix formatting
    Thread Starter gabrielsw

    (@gabrielsw)

    I think i broke this forum code, what a bug.

    I change the config to match yours, but I still see <style amp-boilerplate> @gabrielsw ..

    Thread Starter gabrielsw

    (@gabrielsw)

    Can you validate the page here?

    https://validator.ampproject.org/

    no, it’s my localhost dev machine ??

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Boilerplate changing to “text/css” “media=all”’ is closed to new replies.