• Resolved the5krunner

    (@the5krunner)


    AMP: Version 0.7.0
    Yoast Glue : Version 0.4.3
    Yoast: Version 7.4.2

    I have HUNDREDS of pages which now all have warning in google console. previously there were none.
    eg https://the5krunner.com/2018/05/05/on-my-wrist-this-month-2/amp/

    in wordpress POSTS I get this error:
    “Warning: There is content which fails AMP validation; it will be stripped when served as AMP. Debug

    Invalid elements: script (2)”

    It looks to me like these erros all come from AMAZON scripts that I have inserted. They are standard amazon affiliate scripts

    There is no way that i can change these scripts. I would lose all revenues. in any case there are too many to change.

    this only happended since the last AMP upgrade to v0.7

    I would imagine there are a LARGE number of people with the same issue as me.

    I imagine that google will relatively soon demote my pages for MOBILE…which would be disastrous.

    any help appreciated

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    The warning is only there to inform you that the script tags are being removed. The AMP page served from your site does not include those script tags, so Google will not see them and you won’t get demoted.

    For more, see https://ww.wp.xz.cn/support/topic/warning-there-is-content-which-fails-amp-validation/

    In v0.7.1 we’ll remove the validation warning message unless amp theme support is present. In v1.0 we’ll be adding the ability to ignore specific validation errors.

    Plugin Author Weston Ruter

    (@westonruter)

    I see the validation errors:

    * The attribute ‘defer’ may not appear in tag ‘amphtml engine v0.js script’.
    * The attribute ‘defer’ may not appear in tag ‘amp-iframe extension .js script’. Learn more.

    https://validator.ampproject.org/#url=https%3A%2F%2Fthe5krunner.com%2F2018%2F05%2F05%2Fon-my-wrist-this-month-2%2Famp%2F

    This is due to a plugin you have which adds defer attributes for performance, but it is doing so incorrectly. Do you have such a plugin? What plugins do you have active?

    Thread Starter the5krunner

    (@the5krunner)

    thank you. i thought it was something like that but did not have the understanding to progress AND to know what i was doing..

    yes i have the “Async JavaScript” plugin active and set to DEFER. I have just changed to ASYNC.

    Thread Starter the5krunner

    (@the5krunner)

    to clarify: i have made that change to BOTH “Async JavaScript Method” and to “jQuery”

    i’ve no idea if that is the right thing to do

    Thread Starter the5krunner

    (@the5krunner)

    now all the pages error out: “amphtml engine v0.js script”

    Plugin Author Weston Ruter

    (@westonruter)

    I recommend deactivating the Async JavaScript plugin.

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

The topic ‘numerous validation errors in google console’ is closed to new replies.