Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe schema - A value for the image field is required. #2124

Closed
laserjobs opened this issue Apr 12, 2019 · 7 comments
Closed

Recipe schema - A value for the image field is required. #2124

laserjobs opened this issue Apr 12, 2019 · 7 comments

Comments

@laserjobs
Copy link

laserjobs commented Apr 12, 2019

Not sure if this is a Google Structured Data issue or something to do with the AMP Recipe schema?

The issue started showing up Apr 7, 2019 in Google Search Console

image A value for the image field is required.

Here is sample URL:
https://www.godairyfree.org/recipes/dairy-free-roasted-carrot-bisque-soup/amp

and the amp-img code in the Recipe Schema:

<amp-img itemprop="image" src="https://www.godairyfree.org/wp-content/uploads/2019/04/pics-edf-roasted-carrot-bisque-small.jpg" width="205" height="205" class="amp-wp-enforced-sizes" layout="intrinsic"></amp-img>

https://search.google.com/structured-data/testing-tool

@westonruter
Copy link
Member

The image field in your Schema.org metadata in the head looks good:

"image":{"@type":"ImageObject","url":"https:\/\/www.godairyfree.org\/wp-content\/uploads\/2019\/04\/pics-edf-roasted-carrot-bisque-feature.jpg","width":1200,"height":800}

@westonruter
Copy link
Member

The image for the recipe does look properly identified on the non-AMP page, so it may be an issue with the AMP plugin. I'll investigate further.

@westonruter
Copy link
Member

Actually, it seems the issue may be the rich snippets doesn't understand the use of itemprop=image on an amp-img, as it doesn't understand that amp-img is an img.

But if you update to 1.1-beta2 you will see the original img will be added under the amp-img inside a noscript element with that itemprop=image retained. See #1832.

I checked and this seems to fix the rich snippet, since there is an img[itemprop=image] again.

@westonruter
Copy link
Member

You can find the latest 1.1 prerelease at https://github.com/ampproject/amp-wp/releases

Please test and confirm that it fixes your issue.

Thanks!

@laserjobs
Copy link
Author

Thanks! It does fix the issue.

@equilibriumxco
Copy link

Hello, I just read this thread and I am having a similar issue with www.equilibriumx.com/amp
There are 2 errors reported but I don't understand why, cause It seems to be OK. Can you help me out?
Cheers

@westonruter
Copy link
Member

@equilibriumxco It doesn't appear you are using this AMP plugin. Also, this is not really an AMP question but a general Google Search question. Better ask at https://www.google.com/webmasters/support/

@ampproject ampproject locked as off-topic and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants