• jembalino

    (@jembalino)


    Hi Team AMP

    I’ve got one critical error which is appearing on every page. The error is listed below:

    Invalid layout property found in AMP tag

    The attribute ‘width’ in tag ‘amp-img’ is set to the invalid value ‘height=’.

    <div class=”post-featured-img”><amp-img src=https://www.thecaravansupermarket.com/wp-content/uploads/2015/02/23L-Water-Container-With-Tap-Screw-Top.jpg width= height= layout=responsive></amp-img></div>

    Could you help please?

    Thanks very much for your hard work

    Jeremy

    URL: https://www.thecaravansupermarket.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • lancecarr

    (@lancecarr)

    First of all when in Webmaster tools use the dialogue box to actually check the current status of the page.

    You can also use this tool: https://validator.ampproject.org/

    Very often Google will throw errors in crawling sites and those errors go into Webmaster tools BUT they are not really errors. (Annoying I know!)

    I just checked that page and it validates fine as AMP..

    Thread Starter jembalino

    (@jembalino)

    Hi, thanks for your response. At the moment the URL I listed is not a page with the error i.e: https://www.thecaravansupermarket.com/. An example is this one:

    https://www.thecaravansupermarket.com/shop/camping-essentials/safety/caravan-accessories-space-blanket/amp/

    At the moment, I have 37 pages with the error listed above and as Google crawls the site the pages are increasing with the same error. I validate the page using both Webmaster tools and the Amp Validator extension in Google Chrome. Both report the error and invalidate the page.

    Any ideas?

    Thanks

    Jeremy

    lancecarr

    (@lancecarr)

    Yeah I just has a look at it.

    It seems that the width and height for the image being referred to has no value set.

    This may be coming from the theme you are using or may be a woo commerce thing.

    Sorry, a little out of my league!

    Thread Starter jembalino

    (@jembalino)

    Hi
    Can anyone else help me with this please.

    Thanks

    Jeremy

    riyazmoinshaik

    (@riyazmoinshaik)

    hey @jembalino

    I am so sorry for the delay.

    I have been to your website, and I noticed the issue. We have resolved this issue in our recent update. Could you please update AMP plugin to the latest version? It must resolve the issue.

    [ Signature moderated ]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘attribute ‘width’ in tag ‘amp-img’ is set to the invalid value ‘height=’’ is closed to new replies.