Webrex SEO Optimizer
English

How to Fix Schema Markup Errors & Warnings: Comprehensive Guide with Examples

Learn how to fix common schema markup errors and warnings with this comprehensive guide. It covers practical solutions and examples, helping you resolve issues like missing properties, syntax mistakes, and outdated markup, ensuring your website gets the best visibility in search results.

Rithvik
Written by RithvikLast update 11 days ago

Schema markup, also known as structured data, plays a critical role in helping search engines understand your website content. By implementing it correctly, you can enhance visibility in search results through rich snippets like product details, star ratings, or FAQs. However, errors and warnings in schema markup can render it ineffective or disqualify your website from rich results entirely.

This guide focuses on practical fixes to the most common schema markup errors and warnings, with examples for each scenario.

Webrex SEO Does All The Heavy Lighting

Here’s how Webrex is the best Shopify app for solving schema errors and warnings, making the implementation easy and efficient:

  • Automatic Error Fixing: Webrex instantly detects and resolves schema errors, reducing manual work.

  • Effortless Setup: A few input fields and button clicks are all it takes—no coding skills required.

  • Shopify-Optimized: Seamlessly integrates with Shopify for hassle-free schema management.

  • Time-Saving: Reduces a typically labor-intensive task to minutes, boosting efficiency.

  • User-Friendly Interface: Simple and intuitive design, even for non-tech users.

  • SEO-Ready: Ensures your schema is error-free, improving your search engine visibility.

  • Consistent Across Pages: Automatically applies schema consistently across your site.

  • Automatic Updates: Keeps your schema up-to-date with minimal effort.

  • Fast Results: Instant schema updates with real-time feedback.

  • Best Shopify App: Webrex is the easiest and most efficient app for managing schema errors on Shopify.

Our expert SEO team is ready to guide you through the process of implementing schema. If you have any questions or need assistance, feel free to schedule a meeting with us - {meeting link}


Identify the Schema Errors and Warnings

Before fixing schema issues, you need to identify them. Use tools like:

  • Google’s Rich Results Test: Checks for errors in rich result-eligible structured data.

  • Schema Markup Validator: Validates JSON-LD, RDFa, and Microdata markup against Schema.org standards.

  • Browser Developer Tools: View structured data directly from your website.


Types of Issues You Might Encounter:

  • Missing required properties.

  • Deprecated or invalid properties.

  • Syntax errors.

  • Conflicting or duplicate markup.

  • Markup for hidden or irrelevant content.


Missing Required Properties

Issue:

Each schema type (e.g., Product, Event, FAQPage) has required properties. Omitting them results in validation errors.

Error: Missing required properties name and price.

Example of Error:

{

  "@context": "https://schema.org",

  "@type": "Product",

  "brand": "ExampleBrand"

}

Fix: Add all required properties as specified in the Schema.org documentation.

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Product",

  "price": "19.99",

  "brand": "ExampleBrand",

  "availability": "InStock"

}

Deprecated or Invalid Properties

Issue:

Schema.org updates its vocabulary frequently. Deprecated properties (e.g., highPrice) or invalid types can cause errors.

Error: highPrice is no longer valid.

Example of Error:

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Product",

  "highPrice": "100.00"

}

Fix: Replace deprecated properties with their valid equivalents. For instance, use the offers property for pricing details.

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Product",

  "offers": {

    "@type": "Offer",

    "price": "100.00",

    "priceCurrency": "USD",

    "availability": "InStock"

  }

}

Syntax Errors

Issue:

Incorrect JSON-LD formatting, such as missing commas, curly brackets, or quotation marks, can make the entire schema invalid.

Error: Missing a comma after "Product".

Example of Error:

{

  "@context": "https://schema.org",

  "@type": "Product"

  "name": "Sample Product",

  "price": "19.99"

}

Fix: Correct the JSON-LD syntax by ensuring all commas, brackets, and quotes are in place.

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Product",

  "price": "19.99"

}

Conflicting or Duplicate Markup


Issue:

Conflicting schema types or duplicate markup for the same content can confuse search engines.

Error: Product and Service schemas conflict for the same item.


Example of Error:

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Item"

}
{

  "@context": "https://schema.org",

  "@type": "Service",

  "name": "Sample Item"

}

Fix: Use one schema type or clearly distinguish between the entities.

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Item",

  "category": "Electronics",

  "offers": {

    "@type": "Offer",

    "price": "29.99",

    "priceCurrency": "USD"

  }

}

If necessary, separate schemas for distinct content types:

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Sample Item",

  "offers": {

    "@type": "Offer",

    "price": "29.99"

  }

}
{

  "@context": "https://schema.org",

  "@type": "Service",

  "name": "Sample Service",

  "serviceType": "Installation"

}

Hidden or Irrelevant Content


Issue:

Structured data applied to content not visible on the page violates search engine guidelines and may trigger warnings or penalties.

Error: Markup is applied to hidden content.

Example of Error:

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Invisible Product",

  "price": "19.99"

}

Fix: Ensure structured data reflects visible content on the page.

{

  "@context": "https://schema.org",

  "@type": "Product",

  "name": "Visible Product",

  "price": "19.99"

}

Omitting Optional but Recommended Properties


Issue:

Warnings occur when optional properties, while not required, are missing. These warnings do not invalidate the schema but reduce its effectiveness.


Warning: Missing properties like location or performer.


Example of Warning:

{

  "@context": "https://schema.org",

  "@type": "Event",

  "name": "Music Concert",

  "startDate": "2024-12-25"

}


Fix: Add recommended properties to improve your schema.

{

  "@context": "https://schema.org",

  "@type": "Event",

  "name": "Music Concert",

  "startDate": "2024-12-25",

  "location": {

    "@type": "Place",

    "name": "Concert Hall",

    "address": "123 Main St, City, Country"

  },

  "performer": {

    "@type": "Person",

    "name": "John Doe"

  }

}

Best Practices for Preventing Schema Markup Errors

  1. Stay Updated: Regularly check the Schema.org documentation for updates and changes.

  2. Validate Before Publishing: Use tools like Google’s Rich Results Test or Schema Markup Validator to test your schema before deployment.

  3. Follow JSON-LD Syntax Rules: Ensure all brackets, commas, and quotation marks are correctly placed.

  4. Avoid Hidden Content: Only apply markup to content visible to users.

  5. Review Warnings: Address optional warnings to maximize schema effectiveness.


Conclusion

Fixing schema markup errors and warnings is essential for leveraging structured data's full potential. By addressing issues such as missing properties, deprecated types, syntax errors, conflicts, and hidden content, you ensure that search engines can understand and display your content accurately. Regular audits, validation tools, and adherence to Schema.org standards are key to maintaining error-free schema markup.

Did this answer your question?