• Resolved Jay

    (@jwbats)


    Dear support,

    Today, I’ve had a number of pages with this error in my google search console.

    Quoting google:

    Google systems have detected that some of your AMP pages do not meet our guidelines; therefore these pages are not eligible for AMP-related features in Google Search. The Accelerated Mobile Pages report lists some of these pages.

    In other words, this is costing me search engine traffic.

    It’s a very easy fix for you guys. I’ve told you about this issue before and I figured it would be fixed by now. There simply needs to be a numerical value in the height and width attributes of an image tag.

    If no image can be found, you can’t determine its dimensions. If no dimensions can be determined, your plugin puts empty height/width attributes in there.

    See screenshot, whichs shows an Amazon affiliate link that has become unavailable, so now your plugin is rendering empty width/height tags.

    View post on imgur.com

    Google’s guidelines are that all images must have widths specified:

    https://support.google.com/webmasters/answer/114016?hl=en

    Specify a width and height for all images. A web browser can begin to render a page even before images are downloaded, provided that it knows the dimensions to wrap non-replaceable elements around. Specifying these dimensions can speed up page loading and improve the user experience.

    Can you please modify your plugin to show 0 for width/height in case no dimensions could be determined for a dead image link?

    Sincerely,

    Jay

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter Jay

    (@jwbats)

    This issue hasn’t been solved yet. I just got 11 more search console errors that can possibly negatively influence my rankings.

    Sometimes, hotlinked images go missing. The AMP output then has no values in its width attributes. Google complains about this.

    You can easily reproduce this by building a page that has a link to a non existing image and then looking at your AMP output.

    The width/height attributes must have a valid value. I suggest you either make it 0 or some other dimensions that you consider to be ‘default’.

    Even better would be to let users upload a ‘no image found’ image.

    Missing Image Leads To These Search Console Errors

    Can this be fixed soon?

    • This reply was modified 5 years, 12 months ago by Jay.
    Plugin Contributor ampforwp

    (@ampforwp)

    one of our team members sameer is working on your issue and he will test all this and will get back to you by your email.

    Thread Starter Jay

    (@jwbats)

    Hi @ampforwp,

    Any progress on this issue yet?

    Earlier I was emailed with the request of doing a skype chat. I asked why, and it turns out you guys need more reproduction instructions for some reason?

    All you need to do is put a broken image link in a non-AMP page:

    <img src="https://nonexistingwebsite.com/nonexistingimage.jpg" />

    And then check the AMP output. You’ll see it has no valid values in its dimension attributes width & height.

    If you simply initialize both to 0 for images-not-found, then the problem will be resolved.

    Sincerely,

    Jay

    • This reply was modified 5 years, 11 months ago by Jay.
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Invalid value for attribute in layout ‘width’ in tag ‘amp-img’’ is closed to new replies.