• Resolved thedrap

    (@thedrap)


    Hi team,
    just got the first warning (I guess more to come) about not having proper Rating min/max values in my product schemas but I checked the URL in question and it seems to be there.
    I had a long back and forth with RankMath support and they found a conflict in the way SiteReviews handle the raitings.

    This is their conclusion from the troubleshooting:

    “Rank Math cannot access product reviews generated by that plugin, so incorrect product schema is being generated. Please contact Site support and ask for help connecting their rating data to the default WooCommerce rating data.”

    See screenshot:
    https://snipboard.io/zCYFdA.jpg

    This is the URL with the warning as an example.
    [ redundant link removed ]

    Important note: The issue comes up ONLY with my french translated pages (WPML) and not on the english ones. Is it possible that there’s a conflict between your plugin and WPML translated pages?

    Thanks

    • This topic was modified 3 years, 7 months ago by thedrap.
    • This topic was modified 3 years, 6 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    1. Are you using the WooCommerce Reviews addon to integrate Site Reviews with WooCommerce?

    2. Have you added the “schema” option to the [site_reviews] shortcode to enable the Site Reviews rating schema?

    3. Since you are using Rank Math, have you enabled the Rank Math Pro integration in the Site Reviews > Schema settings?

    • This reply was modified 3 years, 7 months ago by Gemini Labs.
    Thread Starter thedrap

    (@thedrap)

    Hi team,

    1. Yes I have both
    3. Yes I enabled the integration.

    2. About using the schema option in the shortcode I am not sure. I searched all my theme and it seems that the reviews summary (stars) on top of my product page is inserted somehow I don’t know. What I do know is that the shortcode configuration in the plugin settings don’t have a ‘shema’ options. See screenshot

    https://snipboard.io/9Pntxm.jpg

    Here is how the stars appear:

    https://snipboard.io/3wfY1U.jpg

    Just to remind you, the problem only appears on translation pages (WPML). In this case the page has the ‘fr’ addition to the URL and I’m afraid that it could be the culprit of a mismatch?

    [ redundant link removed ]

    Plugin Author Gemini Labs

    (@geminilabs)

    Try adding the schema="true" option to the [site_reviews] shortcode in the WooCommerce Reviews settings.

    After that, check to see if the rating schema is fixed.

    Thread Starter thedrap

    (@thedrap)

    Thanks. I tried it and it’s same thing. The problem shows only on the french version of the page. The english (default) validates fine.

    Can you please just run the validation yourself and see why the values are not properly mapped?

    French Page:

    {“@type”:”AggregateRating”,“ratingValue”:”0″,”bestRating”:”5″,”ratingCount”:”2″,“reviewCount”:”0″},”offers”:

    English Page:

    {“@type”:”AggregateRating”,“ratingValue”:”4.5″,”bestRating”:”5″,”ratingCount”:”2″,“reviewCount”:”2″},”offers”:

    • This reply was modified 3 years, 7 months ago by thedrap.
    Plugin Author Gemini Labs

    (@geminilabs)

    The integration with Rank Math works if the Site Reviews schema is also generated. This is done by adding the schema="true" option to the [site_reviews] shortcode.

    Looking at the source code of both your pages, I can see that you are not using the schema option on the shortcodes.

    Is it possible that you are manually adding the shortcodes in the theme template files? In which case, the shortcodes saved in the Woocommerce Reviews settings may not be in use on your pages.

    Also, I’m guessing that you have the “Filter Comment Queries” option enabled in the WooCommerce Reviews settings? That might be why the schema is being generated without the shortcodes using the schema="true" option.

    Regardless of how the rating schema is magically appearing without the schema option on the shortcodes, it looks like the problem may have been fixed when I submitted a test review. Site Reviews stores the average rating value to the assigned pages, so when a review is submitted, this value is automatically recalculated.

    In future, you can also use the “Reset Assigned Meta Values” tool.

    Thread Starter thedrap

    (@thedrap)

    Thanks for all the digging. Really insightful and enlightening.

    I honestly don’t know either how the schema appears in the source page. I didn’t develop the web. However it’s possible that the shortcode is inserted from within the theme logic.

    The strange thing was that english worked and french didn’t and that’s why I was concerned about the WPML influence there.

    That said.. after you mentioned that the creation of a new review reset the counting for both languages then I remembered that I imported all my first reviews from amazon when I launched the web and therefore could it be that the translated pages were not stored by Site Reviews? In that case should I run the tool you suggested? Because the product I shared with you is only one case.. I validated other french pages and they were showing the same issue.

    Looking forward to hearing from you and be able to close the ticket.

    Thanks a lot!

    Plugin Author Gemini Labs

    (@geminilabs)

    However it’s possible that the shortcode is inserted from within the theme logic.

    I would check that out if I were you, and make sure that the [site_reviews] shortcode includes the “schema” option.

    Also, when the [site_reviews] shortcode uses the schema option, Site Reviews not only generates the AggregateRating schema, but also Review snippets for each of the visible reviews on the page. So that’s another reason to use the schema option on the [site_reviews] shortcode.

    The strange thing was that english worked and french didn’t and that’s why I was concerned about the WPML influence there.

    When you run the “Reset Assigned Meta Values” tool it fixes all assigned pages on your website, so that should fix the problem for all your products which have reviews assigned to them.

    • This reply was modified 3 years, 7 months ago by Gemini Labs.
    Thread Starter thedrap

    (@thedrap)

    By the way.. I did run the reset meta values and still see french pages with schema error. e.g.

    [ redundant link removed ]

    Does it take some time the system to actually recount? Should I try later?

    Also, if the tool does not fix the french versions of the products, does it mean that I need to manually create a review in each ?? Hope not.

    Thread Starter thedrap

    (@thedrap)

    Also.. the ONLY place I found the insertion of site_reviews shortcode is here:

    <div class="contenuAccordeon">
    
    				 			<?php echo do_shortcode("[site_reviews assigned_posts=\"post_id\" display=\"5\" pagination=\"loadmore\"]"); ?>
    				 			<!-- ?php if( get_field('review_all') ): ?> -->
    					    	<!-- <div class="review_all"> -->
    								<!--?php the_field('review_all'); ?> -->
    							<!-- </div> -->
    							<!--?php endif; ?> -->
    							<!-- ?php echo do_shortcode("[site_reviews_form assigned_posts=\"post_id\" hide=\"title\"]"); ?-->
    							<?php if( get_field('review_all') ): ?>
    					    	<div class="review_all">
    								<?php the_field('review_all'); ?>
    							</div>
    							<?php else:
    								echo do_shortcode("[site_reviews_form assigned_posts=\"post_id\" hide=\"title\"]");
    							endif; ?>
    
    				 		</div>

    But I believe that it’s the bottom part of the page where you see the actual comments. Should I add the schema option in those lines above?

    Plugin Author Gemini Labs

    (@geminilabs)

    Yes! Like this:

    <?php echo do_shortcode('[site_reviews assigned_posts="post_id" display="5" pagination="loadmore" schema="true"]'); ?>
    
    
    Thread Starter thedrap

    (@thedrap)

    Great! Just modified it but still the validation fails for french 🙁

    <?php echo do_shortcode("[site_reviews assigned_posts=\"post_id\" display=\"5\" pagination=\"loadmore\" schema=\"true\"]"); ?>

    https://us.mydrap.com/fr/product/royal-blue-cotton-dinner-napkins-12-units/

    Also I did a reset of assignment but seems that didn’t fix anything either but not sure if it takes time.

    I checked the source page and I see the parameter though

    <div class=”glsr glsr-minimal” id=”glsr_b4dbc04b” data-shortcode=’site_reviews’ data-assigned_posts=’33081,34438′ data-id=’glsr_b4dbc04b’ data-pagination=’loadmore’ data-schema=’1′><div class=”glsr-reviews-wrap”>

    • This reply was modified 3 years, 7 months ago by thedrap.
    Plugin Author Gemini Labs

    (@geminilabs)

    1. This is likely happening because your reviews have only been assigned to the English language page, and not the French language page.

    A. Either enable the WPML integration and use assigned_posts="post_id" in the shortcodes, or:

    B. Since you manually added those reviews, make sure they are assigned to the Post IDs of both languages of the page.

    As you can see, none of the reviews being displayed on the page have been assigned to the french page (Post ID 34438). They are only being displayed because you told Site Reviews to display reviews assigned to either Post ID 33081 (English page) or 34438 (French page).

    That’s why the review count is 0.

    2. There is another problem. The Site Reviews schema is still not being used in Rank Math.

    Does your Site Reviews Schema settings look like this?

    Thread Starter thedrap

    (@thedrap)

    Yes. Schema settings look like that. But only Product is checked.

    Regarding the reviews added manually I did it through the Site Reviews importer tool so I don’t know if or why the importer is not assigning also the French pages id to the review right?

    WPML integration is enabled too by the way.I will check what you mentioned about the shortcode

    Plugin Author Gemini Labs

    (@geminilabs)

    I’ve looked into this a little more and it seems there may be a problem with the Rank Math integration where the Rank Math schema is being generated before the Site Reviews schema is generated.

    Until this is resolved with an update, try enabling the “Filter Comment Queries” setting in the Woocommerce Reviews settings.

    Thread Starter thedrap

    (@thedrap)

    Interesting. Will you report the issue internally?

    Anyways, how is it that the English page works fine?

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Search console warning on’ is closed to new replies.