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

Rich snippets issue: Missing field 'author' #2280

Open
oggede opened this issue Nov 7, 2022 · 7 comments
Open

Rich snippets issue: Missing field 'author' #2280

oggede opened this issue Nov 7, 2022 · 7 comments

Comments

@oggede
Copy link

oggede commented Nov 7, 2022

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.

@bc-vlad-dlogush
Copy link
Contributor

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

@oggede
Copy link
Author

oggede commented Nov 7, 2022

Contributor

Thanks for the reply.

I'm running 6.6.0.

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

@bc-vlad-dlogush
Copy link
Contributor

bc-vlad-dlogush commented Nov 9, 2022

@mattcoy-arcticleaf
Copy link
Contributor

@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.

@oggede
Copy link
Author

oggede commented Nov 9, 2022

@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.

@mattcoy-arcticleaf
Copy link
Contributor

@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 :)

@oggede
Copy link
Author

oggede commented Nov 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants