bigcommerce/cornerstone

Rich snippets issue: Missing field 'author'

oggede opened this issue · 7 comments

Expected behavior

rich snippet author field should be validated

Actual behavior

https://i.imgur.com/Pe3f0iD.jpg

Steps to reproduce behavior

Install Google rich snippets, receive warning from google about no author field.

Note: Issue has been happening before. See thread https://support.bigcommerce.com/s/question/0D54O000078r9T7SAI/google-invalid-object-type-for-field-author

However, recent updates have broken fix so need new solution.

Hi, @oggede. Try updating Cornerstone to the latest version 6.7.0

Contributor

Thanks for the reply.

I'm running 6.6.0.

No changes in "Changelog" that seem to address issue either.

@bc-vlad-dlogush , sure thing. The first goal was to get away from having the schema be defined in tags on the elements, as this is no longer the best way to do this. Instead, we adopt the newer, LD+JSON approach, which separates the schema data from the elements, so one does not have to worry about an edit to the HTML resulting in broken schema.

As for the actual changes to the data, I don't think I changed much. Anything I did change was in an attempt to resolve some of the errors I was seeing on Cornerstone at the time. I ran several tests on my code. There was an error with price ranges that may or may not have been resolved later, but there was never an error with the author field.

@oggede , If I could have your site URL, specifically the product in question, I would be able to troubleshoot your issue.

@bc-vlad-dlogush , sure thing. The first goal was to get away from having the schema be defined in tags on the elements, as this is no longer the best way to do this. Instead, we adopt the newer, LD+JSON approach, which separates the schema data from the elements, so one does not have to worry about an edit to the HTML resulting in broken schema.

As for the actual changes to the data, I don't think I changed much. Anything I did change was in an attempt to resolve some of the errors I was seeing on Cornerstone at the time. I ran several tests on my code. There was an error with price ranges that may or may not have been resolved later, but there was never an error with the author field.

@oggede , If I could have your site URL, specifically the product in question, I would be able to troubleshoot your issue.

Thanks for the explanation Matt. I have sent you an email with my website URL. Would be great if you could do a little troubleshoot. Cheers.

@bc-vlad-dlogush , I connected with @oggede and we were able to determine that the error was coming from a review where the user did not put a name or put something invalid. There is no error with the code :)

Confirming what @mattcoy-arcticleaf said.

Older reviews (generated by older versions of Cornerstone) that are not correctly formatted can trigger Google error messages.

Would be nice to have a feature that removes older reviews that are no longer compliant or compatible.