Structured Data Error – Service

#16633
  • Resolved Jason Chong
    Rank Math free

    I have the attached page (and some others) set up as Service type schema.
    I get an error when running through Googles Structured Data Testing tool in relation to this schema.

    ratingValue
    A value for the ratingValue field is required.
    One of ratingCount or reviewCount must be provided.
    Service is not a known valid target type for the itemReviewed property.

    I am not setting rating or rating count in the page back end so this property should not be passed along. Currently the aggregateRating is passed but with the empty values, hence the error.

    How can this be remedied?

    • This topic was modified 5 years, 2 months ago by Jason Chong. Reason: Adding link
Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

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

    Unfortunately, your attachment did not come through as expected. Kindly resend the same along with some related URL so that I may have a closer at it and try to help.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

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

    Thank you.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    i have the same issue… can you update me too?

    Hi Mr. Seo,

    I’ll need to check this issue to try and replicate it.

    Please open a new support thread and edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hello Mr. Seo,

    Thank you for contacting Rank Math today.

    I did not find any related information regarding your sensitive data section. I would recommend that you open a new support thread for the same.

    Looking forward to helping you. Thank you.

    ​​​​​​

    I have provided you with requested login. Have you looked into it at all?

    Same error here.

    Hello? You are responding to people who have similar complaint but have not responded to me the original poster

    Hello,

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

    I can only seem to detect errors with the local business schema on your site as shown below:
    Errors

    You can fix these errors by entering the missing data via Rank Math > Titles & Meta > Local SEO

    Could you please share a link to the affected page so that we can advise further?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I provided you with a URL already in the sensitive data. You need to look at the Service schema as described in this support post to see the error.

    Hi Jason,

    Thanks for the patience.

    You can fix the service schema error by adding the following code snippet on your theme’s functions.php file:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_service_entity", function( $entity ) {
     unset($entity['aggregateRating']);
     return $entity;
    });

    I hope this info helps. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Structured Data Error – Service’ is closed to new replies.