Structured data with syntax errors detected

#840634
  • Resolved Anonymous
    Rank Math free

    Hi, my site is showing the following error how is this fixed please?
    Structured data with syntax errors detected – Incorrect Value Type

    It is a script which is part of
    <!– /Rank Math WordPress SEO plugin —

    I can’t add the issue here as it is blocking me when I post the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    I’m sorry to hear that you are facing issues with structured data syntax errors on your site. To fix the "Structured data with syntax errors detected – Incorrect Value Type" issue related to Rank Math, you can follow these steps:

    1. Add Filter to Theme’s rank-math.php File:

      • You can include a filter in your theme’s rank-math.php file. To do this, navigate to WordPress Dashboard → Tools → Theme File Editor (Block Editor) or WordPress Dashboard → Appearance → Theme File Editor (Classic Editor).
      • Choose the rank-math.php file from the right sidebar and add the following filter:
        add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
      • Click on the Update button to save your changes.
    2. Clear Cache:

    3. Check Sitemap:

      • Once the changes are updated, check your sitemap to ensure the error is resolved.

    By following these steps, you should be able to resolve the structured data syntax errors related to Rank Math on your site. If you encounter any further issues or need additional assistance, please feel free to reach out to our support team directly here. We are here to help!

    Thank you for reaching out with your concern. Let me know if you need further assistance.

    Sources:
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math
    JobPosting Schema Type » Rank Math
    Resolving Rank Math Schema Markup Related Issues
    Software Schema Type » Rank Math

    Hello,

    Please disregard the reply from our bot above.

    Could you please share the affected URL so we can check as well?

    Looking forward to helping you.

    Hello,

    Temporarily uninstalling/deleting the plugin does not remove any of Rank Math’s data from your database.

    So, you can delete the plugin and install it again without losing the metadata of your posts.

    Regarding the issue, it seems that Google is viewing a cached version of your homepage:
    https://search.google.com/test/rich-results/result/r%2Funknown-type?id=L1F2zoQCpAHC40mDsS-tog

    However, the schema from Rank Math in your page’s source code is completely validating fine:
    https://search.google.com/test/rich-results/result?id=qpX4nJ9TPSHtpIuwkZ9dYQ

    In this case, please clear your website and server’s cache, then revalidate the issue in your Google Search Console account.

    Looking forward to helping 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Structured data with syntax errors detected’ is closed to new replies.