@en-us not compatible with range
-
There are errors in the structured data made by yoast SEO premium.
Per https://pagespeed.web.dev/ a webpage needs to pass the Structured Data Linter at http://linter.structured-data.org/ This test finds a few errors in Yoast’s structured data. On my page it is saying:
property og:url: Object "https://tools4families.com/family-support-for-depression-how-you-can-help/"@en-us not compatible with range (ogc:url) property og:image: Object "https://tools4families.com/wp-content/uploads/2021/09/Untitled-design-23.jpg"@en-us not compatible with range (ogc:url)The lines that generate this error are:
<meta property="og:url" content="https://tools4families.com/family-support-for-depression-how-you-can-help/" class="yoast-seo-meta-tag" />and
<meta property="og:image" content="https://tools4families.com/wp-content/uploads/2021/09/Untitled-design-23.jpg" class="yoast-seo-meta-tag" />Researching this error, you find an answer on: https://github.com/structured-data/linter/issues/49 Basically, meta “content” is defined as text but Yoast is giving a URL. This causes an error. It should be a link defined like:
<link property="og:url" href="https://tools4families.com/family-support-for-depression-how-you-can-help/" class="yoast-seo-meta-tag" /><link property="og:image:secure_url" href="https://tools4families.com/wp-content/uploads/2021/09/Untitled-design-23.jpg" class="yoast-seo-meta-tag" />Similar errors are showing
property schema:width: Object "2000"^^<http://www.w3.org/2001/XMLSchema#integer> not compatible with rangeIncludes (schema:Distance,schema:QuantitativeValue) property schema:width: Object "512"^^<http://www.w3.org/2001/XMLSchema#integer> not compatible with rangeIncludes (schema:Distance,schema:QuantitativeValue) property schema:height: Object "1428"^^<http://www.w3.org/2001/XMLSchema#integer> not compatible with rangeIncludes (schema:Distance,schema:QuantitativeValue) property schema:height: Object "512"^^<http://www.w3.org/2001/XMLSchema#integer> not compatible with rangeIncludes (schema:Distance,schema:QuantitativeValue)This is due to a similar reason. It is expecting text but receiving an integer
<meta property="og:image:width" content="2000" class="yoast-seo-meta-tag" /> <meta property="og:image:height" content="1428" class="yoast-seo-meta-tag" />The error with 512 is because schema:height and schema:width are expecting a Distance or QuantitativeValue not an integer. This is probably why https://search.google.com/test/rich-results wasn’t finding the Logo structure on the page until I made a separate schema structure in the header for it.
The page I need help with: [log in to see the link]
The topic ‘@en-us not compatible with range’ is closed to new replies.