Structured Data Testing Tool Error
-
Hi,
I’m getting an error of ‘A value for the item field is required.’
I tried checking ‘link current item’ in settings, but this resulted in over a dozen Open Graph errors for some reason.
I’ve noticed that the destination page is not present in search results, e.g.,
home > staff displays in the SERPs instead of home > staff > john doe. I’d imagine this would be related to the aforementioned error?thanks,
-Matt
-
Officially, schema.org’s BreadcrumbList does not have a method of containing the current item (the breadcrumb representing the current page) if it is unlinked. Hence, in Breadcrumb NavXT 6.2 schema.org markup is no longer present in the default setting values for the unlinked templates (in most cases the unlinked templates should contain just
<span>%htitle%</span>).When the current item is linked and you get the Open Graph errors, do any of them make sense/point to an actual problem, or do they appear to be gibberish?
Gibberish.
Yesterday I receive an error notice in search console related to the broken breadcrumbs:
and here’s the error in Google Structured Data Testing Tool:
Here’s a source example of the breadcrumb markup:
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/"> <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Mitchell & Whale Ltd.." href="https://mysite.com" class="home"><span property="name">Home</span></a><meta property="position" content="1"></span> > <span property="itemListElement" typeof="ListItem"><span property="name">Auto Insurance</span><meta property="position" content="2"></span></div>-
This reply was modified 6 years, 6 months ago by
springboard-seo.
And NavXT Post Template Settings:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to %title%." href="%link%" class="%type%"><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>-
This reply was modified 6 years, 6 months ago by
springboard-seo.
@mtekk If the current breadcrumb item is wrapped in a span, e.g., <span property=”name”>Auto Insurance</span>, can’t the missing attributes just be added in there?
Google Search Console just added an additional error today:
Missing field “id”
In addition to the original one of: Missing field “item”
-
This reply was modified 6 years, 6 months ago by
springboard-seo.
-
This reply was modified 6 years, 6 months ago by
springboard-seo.
You’re most likely getting the missing field “id” due to having
property="name"in your span. If you remove it, that error should go away. Currently, for unlinked breadcrumbs you should not have any schema.org markup for them. There are a few ways that others have found to inject an ‘id’ (the URL), but none of them are really standard, and until I change something in 6.4, unlinked breadcrumb templates do not have the %link% tag available.@mtekk Could you suggest how I can keep the last item unlinked without errors? I’m really confused at this point.
I see you have it working on your site without errors: https://mtekk.us/code/breadcrumb-navxt/
If I need to edit my NavXT Post Template Settings, could you give me the code?
thanks,
-Matt
-
This reply was modified 6 years, 6 months ago by
springboard-seo.
I’m using the default from 6.2.0, which is:
%htitle%However, a span without extras should work:
<span>%htitle%</span>Apparently,
<span property="name">%htitle%</span>works as well in the structured data testing tool. If you run your page through that, what are you getting? Also, is the last breadcrumb using the expected template, or is there extra markup being included there?@mtekk These are my settings:
Page Template:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to %title%." href="%link%" class="%type%"><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>Page Template (Unlinked)
<span property="itemListElement" typeof="ListItem"><span property="name">%htitle%</span><meta property="position" content="%position%"></span>I’m using version 6.3.0 if that matters?
-
This reply was modified 6 years, 6 months ago by
springboard-seo.
@mtekk Incredibly (and I swear I’ve changed nothing) the Structured data testing tool no longer is giving me the errors. I wonder if they’ve changed/fixed the tool in the last day or so?
I’ve now requested Google Search Console to validate the “fix” although I’ve not changed anything. Hopefully GSC will also be clear of errors.
-
This reply was modified 6 years, 6 months ago by
springboard-seo.
For the unlinked template, you don’t want to have the extra information, that is, instead of:
<span property="itemListElement" typeof="ListItem"><span property="name">%htitle%</span><meta property="position" content="%position%"></span>you want<span property="name">%htitle%</span>.As for the Google Search Console, be aware that fetching a URL vs pasting in HTML will result in different results (a bug it has had for quite a while). As for which one is correct, I don’t know for sure.
-
This reply was modified 6 years, 6 months ago by
The topic ‘Structured Data Testing Tool Error’ is closed to new replies.