How to fix Rich Results Test errors
Open the failing item in the test, read the exact error, and fix that field or format in your page's structured data, then retest. Most errors are a missing required field, a wrongly formatted value, or markup that is broken or duplicated.
Google's Rich Results Test reads the structured data (also called schema markup) on a page and tells you whether Google can use it for enhanced search listings, such as star ratings, prices or product details. When it reports errors, that page is not eligible for the matching feature until the markup is fixed. The good news is that each error names the field that is wrong, so the fix is usually small.
What you see when a page fails
The test is at search.google.com/test/rich-results. You paste a URL or a code snippet and it shows one of a few results:
- Errors (red): a required field is missing or invalid. The item is not eligible for rich results.
- Warnings (orange): recommended fields are missing. The item can still qualify, but may look less complete.
- No items detected: Google found no structured data it supports on that page.
- Page could not be fetched: Google could not load the page at all.
Warnings are optional to fix. Errors are the ones that matter.
Why it matters
Rich results can make a listing stand out in search with prices, ratings, availability or event details. Without valid markup you lose that extra detail, and a competitor with clean markup may look more complete next to you. Structured data also helps search engines and AI tools understand what a page is about. Broken markup does not usually cause a ranking penalty, but you simply miss the benefit. Note that Google only shows rich results for certain types, and has reduced some of them over time (FAQ results, for example, are now limited to a small set of sites). Valid markup is never a guarantee that a rich result appears.
How to check your site for free
- Open the Rich Results Test and enter the full address of a page, such as a product, article or your home page.
- Wait for the result, then click each detected item to expand it and read every error and warning.
- Try the Schema Markup Validator at
validator.schema.orgas a second opinion. It checks general schema.org rules rather than only Google's requirements. - In Google Search Console, open the Enhancements and Shopping sections (names vary) to see errors across your whole site, not just one page.
Test a few different page types. Errors often repeat across every page made from the same template.
Common errors and what to do
| Error | Usual fix |
|---|---|
Missing field name | Add a name to the item, matching the visible page title or product name |
Missing field offers, review or aggregateRating (Product) | Add at least one of these, most often an offers block with price and currency |
| Invalid value type or invalid number | Use a plain number for price (for example 19.99), with the currency in priceCurrency such as USD |
| Invalid date | Use ISO 8601 format, for example 2026-11-23 or 2026-11-23T09:00:00+01:00 |
| Invalid URL | Use full web addresses starting with https:// for image, url and similar fields |
| Parsing error or unparsable structured data | The code has a syntax problem, often a missing comma or quote. See unparsable structured data |
| Same item appears twice | Two sources are adding markup. See duplicate markup from schema plugins |
For product pages, price problems are especially common, and missing price in product schema goes into that in detail.
How to fix it in general
Most sites add structured data as a block of JSON-LD inside a <script type="application/ld+json"> tag in the page. A minimal product example looks like this:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Blue Ceramic Mug",
"image": "https://example.com/mug.jpg",
"offers": {
"@type": "Offer",
"price": "19.99",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
The steps are the same on every platform:
- Read the exact error text and note which item and field it names.
- Find where the markup comes from: your theme, an SEO plugin, an app, a tag manager, or code written by hand.
- Fix it at the source, not by editing the live page output, or the change will be overwritten.
- Make sure the markup matches what visitors see. A price in the markup that differs from the price on the page can cause problems.
- Remove duplicates so only one source outputs each item.
Where you make the change depends on your platform. On WordPress it is usually in your SEO or schema plugin settings or the theme. On Shopify it is often in the theme's product template or an app. On Wix, Squarespace and Webflow there are built-in SEO settings and a custom code area for adding your own JSON-LD, though the menu names change between versions. If markup is injected through Google Tag Manager, the fix is in the tag that holds the JSON-LD. If none of this feels comfortable, hand the exact error text to your developer, as that is usually all they need.
Page could not be fetched
If the test cannot load the page, the markup may be fine. Check that the page is public (not behind a login or a maintenance screen), that robots.txt does not block Googlebot, and that your firewall or security plugin is not blocking Google's requests. You can also paste the code into the test's code tab to check the markup on its own.
How to confirm the fix worked
- Retest the live URL in the Rich Results Test and check the errors are gone.
- Make sure the right item types are still detected, not just that errors disappeared.
- If Search Console flagged the problem, open the issue and click Validate fix. Google then rechecks your pages, which can take days or a couple of weeks.
- Spot check two or three other pages that use the same template.
Passing the test means the markup is valid. It does not mean rich results will show straight away, or at all.
How to stop it coming back
- Retest key pages after theme changes, plugin updates and redesigns, since these are the usual causes.
- Use only one tool to generate each type of markup.
- Keep prices, stock status and dates in the markup tied to the real page data, rather than typed in by hand.
- Check the Search Console enhancement reports now and then for new errors.
- SiteMonday checks structured data in week 16 of its yearly plan and lists problems in a ranked fix list, which is useful as a regular recheck. Fixing them is still up to you or your developer.
Step by step for your platform
- Page fails Rich Results Test on WordPress
- Page fails Rich Results Test on Shopify
- Page fails Rich Results Test on Wix
- Page fails Rich Results Test on Squarespace
- Page fails Rich Results Test on Webflow
- Page fails Rich Results Test on Next.js
- Page fails Rich Results Test on Google Tag Manager
Questions
What is the difference between an error and a warning in the Rich Results Test?
An error means a required field is missing or invalid, so the item is not eligible for rich results. A warning means an optional recommended field is missing, and the item can still qualify.
Why does the test say no items detected?
Google found no structured data of a type it supports for rich results. The markup may be missing, may be a type Google does not show, or may be added by a script that did not run when the page was tested.
Will fixing the errors guarantee rich results in search?
No. Valid markup makes a page eligible, but Google decides whether to show a rich result based on the query, the page quality and other factors.
How long until Search Console shows the fix?
After you click Validate fix, Google rechecks the affected pages, which usually takes several days and can take a couple of weeks. The Rich Results Test itself shows the result immediately.
Can I fix this without a developer?
Often yes, if your platform or SEO plugin has fields for the missing data, such as price or image. If the error is in custom code, pass the exact error message to a developer.
Do I need to fix warnings too?
Not required, but adding the recommended fields can make your listing more complete. Fix all errors first, then add warnings if the data is easy to supply and accurate.