Google Structured Data Errors and Warnings
solved

By Petr Hucik, 5 years ago

tl;dr; If you’re seeing structured data warnings, don’t worry… these are totally normal.

One of the most common question users of revws module are asking me - why does google complains about structured data? What's wrong with this module? The answer is - google is at fault. And don't worry about it.

Google has updated their structured data in 2019 and this is causing a lot of warnings, and lot of nervous merchants. But remember, warnings are not errors, they are just recommendations. And in this case you can't do anything to make them disappear. In general, you will see 2 types of warnings.

"review" - The review field is recommended. Please provide a value if available.

This warning is displayed because no review has been written for given product yet. It will be fixes as soon as somebody writes one. There is nothing you can do to make this to go away, other than posting a fake review. And we don't do that, right?

"aggregateRating" - The aggregateRating field is recommended. Please provide a value if available.

Again, this warning is related to the fact that no review has been posted for the product. With zero reviews it's not possible to calculate average / aggregate ratings. Allowed value for review average field should be in range 1 to 5. But with zero reviews, the average is... well, either zero or infinity. If we try to enter zero, google will complain (this time it will be error, not warning). If we enter some valid number (for example 5), google will once again complain that there are no associated reviews. And possibly penalize you for lying. That can really hurt your SEO.

The only correct way to handle this situation is to omit aggregateRating completely. Google will complain with this warning, but it's harmless. Once somebody submit review, the warning will disappear. 

By Emmanuel H., 5 years ago

Hi, First I want to thank you for offering a module like this, which is very good and complete, it's great.

I would like to buy the premium version, but first I need to know how I can solve some problems I have with structured data.

I get 1 error ( "itemReviewed".) in the part of AggregateRating and in that of Review

How can I solve that? Already tried to modify some parameters of the configuration section of the product details, but it does not work.

Secondly, and in relation to the purchase of the module, I would like to know if the automatic mail delivery function contains some configuration to offer a discount to the customer after having qualified the product.

And lastly, I would like to make some adjustments for my template. In the mobile view, the window that opens for ratings is below another module (online chat) and it is difficult to use.

I wonder if this adjustment has any cost.

I await your response.

By G. H., 5 years ago

You can move the button of the chat to the left

By Akash Samee, 4 years ago

Hi, same i have error, check attachment, any solution?

By Domas Šteimantas, 4 years ago

Same error and no one seems will fix it...

By Barry Smith, 2 years ago

Same error here on paid module - this needs a fix ASAP!

By Barry Smith, 2 years ago

Same error here on paid module - this needs a fix ASAP!

By Vasyl M, 9 months ago

hello, I have same error Missing field "itemRevied"

By Paulo Gonçalves, 8 months ago

Can someone tell please how to solve this issue? Thank you very much

By Patryk Wróbel, 6 months ago

I am also facing the same issue - Missing field "itemReviewed". Can anyone help?

By Petr Hucik, 6 months ago

Hi,

this is not a bug in the module, but in your theme.

Your theme is responsible for emitting metadata (itemscope, itemtype attributes) about product into the HTML. These metadata should be present even without any review module installed.

The resulting HTML should look something like this:

Theme is responsible for the green part. At the proper place, theme should also call the hook to include reviews data - this is the red html. Only this part is the responsibility of revws module.

If you are seeing the Missing field: itemReviews warning, then your theme either

  • did not emit metadata about product
  • or included revws html (red) outside of the green <div> that describes the product — the red html must be child node of div with itemtype="https://schema.org/Product"

Neither of these two issues are problem of the module. Fix your theme :)