• Resolved uipassion

    (@uipassion)


    Hello ,
    How to solve the below validation messages:-
    Amp Plugin Version 2.0.11

    1)The mandatory attribute ‘style’ is missing in tag ‘i-amphtml-sizer
    2)The author stylesheet specified in tag ‘style amp-custom (transformed)’ is too long – document contains 52564 bytes whereas the limit is 50000 bytes.
    3)The attribute ‘src’ in tag ‘amp-carousel extension .js script’ is set to the invalid value ‘https://cdn.ampproject.org/v0/amp-carousel-0.2.js’.
    4)The attribute ‘disable-inline-width’ may not appear in tag ‘amp-img’.
    5)The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @uipassion

    1)The mandatory attribute ‘style’ is missing in tag ‘i-amphtml-sizer

    1) Please make sure you have added any CSS in <head> tag
    2) All CSS must be inlined.
    3) It should not exceed maximum size
    4) Please make sure that your <style> tag has amp-custom attribute

    2)The author stylesheet specified in tag ‘style amp-custom (transformed)’ is too long – document contains 52564 bytes whereas the limit is 50000 bytes.

    Please make sure your custom CSS does not exceed the limits of 50000 bytes.

    3)The attribute ‘src’ in tag ‘amp-carousel extension .js script’ is set to the invalid value ‘https://cdn.ampproject.org/v0/amp-carousel-0.2.js’.

    Can you please check why there is at the end of the script URL, seems it created an invalid script path.

    4)The attribute ‘disable-inline-width’ may not appear in tag ‘amp-img’.

    5)The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?

    Can you please share an AMP page URL for these errors?

    Thread Starter uipassion

    (@uipassion)

    These errors were found by “SEMRush”.
    The Pages are :-
    1)https://www.visitorguard.com/?amp

    Plugin Support Milind More

    (@milindmore22)

    Hello @uipassion

    I am not sure why it shows those errors, as the official amp validator seems to be validating your pages. (I doubt that semrush might be using an outdated AMP validator service)

    I think it’s best to approach to contact semrush support on how you can resolve those issues.

    Additionally, please check and remove URL parameters &#8217 from the script
    https://cdn.ampproject.org/v0/amp-carousel-0.2.js&#8217

    Plugin Support Milind More

    (@milindmore22)

    Hello @uipassion

    I contacted SMERush support to check if they can help you, they need an email id associated with SMErush account so they can’t help me further.

    They did confirm they have an in-house tool/service that validates AMP pages. if I am guessing correctly it is not updated.

    I will recommend connecting with them for further help.

    • This reply was modified 3 years, 11 months ago by Milind More.
    Thread Starter uipassion

    (@uipassion)

    Sure @milindmore22 ,
    Thank you very much .Will connect SEMRUSH

    Thanks, @uipassion. We’ll leave this topic open for now – if you need our help with anything based upon what you hear from SMERush, just let us know.

    Plugin Support Milind More

    (@milindmore22)

    @uipassion Any updates from SEMRush?

    Plugin Support Milind More

    (@milindmore22)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Solution for AMP Validation errors’ is closed to new replies.