Missing field “itemReviewed”

#39168
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I see the issue on your site but I couldn’t reproduce it on my setup.

    Can you add your site’s FTP access in the Sensitive Data Section so we could check the issue by editing some files?

    Looking forward to helping you. Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Rank Math plugin was wrongly storing the rating value for the WooCommerce Products in the Database when editing a product from Elementor. Our Development team has addressed this issue and released an update yesterday.

    The new products will not show any errors now but for the existing products, the value is stored in the Database. To fix the errors in the existing products, I added following code in your theme’s functions.php file:

    
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	if ( ! is_product() ) {
    		return $entity;
    	}
    
    	if ( isset( $entity['review']['author'] ) ) unset( $entity['review']['author'] );
    	if ( isset( $entity['review']['datePublished'] ) ) unset( $entity['review']['datePublished'] );
    	if ( isset( $entity['review']['dateModified'] ) ) unset( $entity['review']['dateModified'] );
    	if ( isset( $entity['review']['reviewRating'] ) ) unset( $entity['review']['reviewRating'] );
    
    	return $entity;
    });
    

    This seemed to have fixed the issue. Can you please confirm?

    Thank you.

    Thank you very much.
    Now missing field “itemReviewed” has fixed

    Regards

    Todd
    Rank Math free

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Missing field “itemReviewed”’ is closed to new replies.