• Resolved Ivan

    (@calvin13)


    I have the following AMP validation errors after update to AMP 0.3.1

    tx.error @ validator.js:320
    (anonymous function) @ validator.js:361
    f.ca @ validator.js:295
    Mw @ validator.js:299
    Hw @ validator.js:299
    Aw.vb @ validator.js:299
    xw @ validator.js:292
    validator.js:320

    The attribute ‘type’ in tag ‘script type=application/ld+json’ is set to the invalid value ‘text/javascript’.

    The attribute ‘href’ in tag ‘link rel=stylesheet for fonts’ is set to the invalid value ‘//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,700,400italic,700italic’. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#custom-fonts)

    The attribute ‘src’ in tag ‘amphtml engine v0.js script’ is set to the invalid value ‘//cdn.ampproject.org/v0.js’. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt)

    The attribute ‘type’ in tag ‘script type=application/ld+json’ is set to the invalid value ‘text/javascript’.

    https://ww.wp.xz.cn/plugins/amp/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Ivan

    (@calvin13)

    After some research, i think my problem is related to cloudflare….

    Hi Ivan.
    You write that the problem may be related to cloudflare
    and what do you do? Does this help?

    Thread Starter Ivan

    (@calvin13)

    I wrote to cloudflare’s support in order to provide a solution (I’m awaiting response)

    I have seen that If you desactive some of the features of cloudflare, certain errors disappear. In my case: Google Analytics App

    Thread Starter Ivan

    (@calvin13)

    The solution in my case:

    I have to disable Rocket Loader in Cloudflare, and the app for Google Analytics (also in Cloudflare).

    🙂

    I have it off – but swears only on advertising adsense

    Thread Starter Ivan

    (@calvin13)

    Also, i have had to do another thing.

    tick “off” in the cloudflare plugin “HTTPS Protocol Rewriting”

    I do not have this plugin. I am “page rules” did not write this kind of cache pages. Anyway I swear on Google ads

    So, did turning of Rocket Loader and Off on the https protocol rewriting fixed the errors?

    I am wondering if WP Super Cache is causing me problems…

    @ivan – great info. Thanks

    Did you get a feedback from CloudFlare?

    I have some validating error with AMP Validator, and I turned off HTTPS Protocol Rewriting, then I passed test. Since I using strict SSL, I expect there’s no negative effects will happen.

    Thank you for tip.

    Turning off HTTPS Protocol rewriting also solved my validation problems

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

The topic ‘AMP validation had errors’ is closed to new replies.