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:
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!
Yes, I’m using Mobile + AMP, and I’m using version 9.8 of Newspaper.
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!
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?
-
This reply was modified 6 years by
mparlevliet.
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.”