• Resolved j2fb

    (@j2fb)


    Hi,

    I’m using Yoast on my WooCommerce store, and I’ve noticed an issue with the Schema markup of the review section, but only when there are no reviews on the product page.

    When there are 0 reviews, it looks like this:

    “aggregateRating”:{“@type”:”AggregateRating”,”ratingValue”:5,”reviewCount”:1},”review”:{“@type”:”Review”,”reviewRating”:{“@type”:”Rating”,”ratingValue”:”5″,”bestRating”:”5″},”author”:{“@type”:”Person”,”name”:””}}

    As you can see, the “name” is empty, which causes pages to appear as Invalid in Google Search Console, with the error: “Missing field “name” (in “author”)”.

    What can we do to fix this and avoid the errors in GSC?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @j2fb,

    Thanks for reaching out about your structured data. Could you provide an affected URL?

    Thread Starter j2fb

    (@j2fb)

    Hi Maybellyne,

    Here is an example of an affected URL: https://www.myloops.net/product/chants-and-shouts-vol-1

    Thanks!

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for sharing but the Yoast SEO plugin adds the Review Schema piece only when there’s at least one review. Read more here. That product has none and that incomplete output is not from our plugin.

    A conflict check is way to determine the source of the output. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter j2fb

    (@j2fb)

    Hi there,

    Thanks for your reply, interesting!

    Are you absolutely sure about that? The reason why I’m asking is because I compared one of my product pages with at least one review and the one I sent above (with 0 reviews), and the 2 schema sections are added at the exact same place in the code of my page, and it looks exactly the same (except for the fact that one of them doesn’t have any actual review content, and of course no “name” content either). It really looks like like this portion of code was added by the same plugin in both pages, so I just wanted to double check with you if it cannot possibly be a yoast bug?

    Thanks!

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @j2fb

    When I checked the page source of the product chants-and-shouts-vol-1, I noticed the Yoast SEO schema appears on line number 23.

    On the other hand, the code you shared i.e “aggregateRating”:{“@type”:”AggregateRating”,”ratingValue”:5,”reviewCount”:1},”review”:{“@type”:”Review”,”reviewRating”:{“@type”:”Rating”,”ratingValue”:”5″,”bestRating”:”5″},”author”:{“@type”:”Person”,”name”:””}} is appearing on line number 1457 in the page source.

    If you search using the term @type”:”AggregateRating”, you will see it gets detected only in the line number 1457.

    Kindly check conflict to see which plugin is outputting the above script.

    Please test this on your development or staging site if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin has a troubleshooting mode, which?does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    Thread Starter j2fb

    (@j2fb)

    After a lot more search, you were right; I ended up finding some custom code that was generating this behavior. Thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.