• Resolved dror9098

    (@dror9098)


    Hi there,
    There is a new critical issue on the schema that your plugin create.
    There’s a bug that your schema add at the end of the array of reviews an “empty” array of review for the products.
    Google detects this is an error which lead to fail of product and review section.
    This need to be resolved ASAP please.
    `{“@type”:”Person”,”name”:””},”description”:””,”reviewRating”:{“@type”:”Rating”,”bestRating”:”5″,”ratingValue”:”5″,”worstRating”:”1″}}],”image”:[{“@type”:”ImageObject”,”@id”:”LINK\/#primaryimage”,”url”:”LINK”,”width”:”1000″,”height”:”1065″},{“@type”:”ImageObject”,”url”:”LINK”,”width”:120,”height”:121},

    Google Error:Missing field ‘name’

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dror9098

    (@dror9098)

    Also,
    I’m thinking this happened cuz of this code from your plugin:

    if(isset($sd_data['saswp_default_review']) && $sd_data['saswp_default_review'] == 1){
                     
                         $reviews_arr[] = array(
                         'author'        => saswp_get_the_author_name(),
                         'datePublished' => get_the_date("c"),
                         'description'   => saswp_get_the_excerpt(),
                         'reviewRating'  => 5,
                     );
                     
                        $product_details['product_review_count']   = 1;
                        $product_details['product_average_rating'] = 5;  
                         
                     }

    This add a default 1 review with none content

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    We have created a ticket for this and will improve it in next update.

    Ref: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1557

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    The issue has been fixed in latest version. Please update to it and let us know.?

    Hi,

    I was having the same problem, then updated the plugin and keep seeing the empty array and Search Console doesn’t allow me to validate correction. The generated code in my page: https://navas-sa.com/ looks like this:

    {"@type":"AggregateRating","ratingValue":"5","reviewCount":11},"review":[{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":{"@type":"Person","name":""},"description":"","reviewRating":{"@type":"Rating","bestRating":"5","ratingValue":"5","worstRating":"1"}},{"@type":"Review","author":

    Plugin Author Magazine3

    (@magazine3)

    adcabellos: As per forum guidelines, Please create a new topic.

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

The topic ‘Schema add empty review array to the code’ is closed to new replies.