Missing URL for attribute 'srcset' in tag 'amp-img'.

Posted in: Newspaper
Post count: 128

I haven’t changed anything on my site and all of a sudden started getting these amp errors on pages. Any advice on what to do? Thanks. Here is one of the pages it is doing it on:

https://www.vitalthrills.com/2019/08/13/watch-the-new-trailer-for-the-dark-crystal-age-of-resistance/?amp

Post count: 35449

Hi,

If you are using the mobile theme please make sure that you are using one of those two options -> http://prntscr.com/oxm9za If you are not using the mobile theme please make sure that you have set the amp plugin as in our documentation from here -> https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/

Thank you!

Post count: 128

Yes, I’m using Mobile + AMP, and I’m using version 9.8 of Newspaper.

Post count: 35449

Hi,

Are you using the last version of the AMP plugin, v1.2.1 ?
You can try the suggestion from this similar topic -> https://wordpress.org/support/topic/missing-url-for-attribute-srcset-in-tag-amp-img/

Hope this will help you!
Thank you!

Post count: 128

Yes, I have the latest version of the AMP plugin. Looking at the source of the page, it looks like the error is coming from the TagDiv Slide Gallery (amp-carousel), which has a lot of these – srcset=””. Is there any kind of fix for this?

Also, if I do the fix that you linked to, where would I put that code?

Post count: 35449

Hi,

I’ve made some test , but I can not recreate this problem, I need some more time to make some deep investigation for this problem to see exactly from where is came this problem.

Thank you for your understanding!

Post count: 128

Thanks Calin!

Post count: 128

Looks like it was an issue with a recent update of the AMP plugin:

https://github.com/ampproject/amp-wp/releases

Fixes: “Prevent empty srcset for images in galleries.”

Post count: 35449

Hi,
I’m glad that the problem was solved!
Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.