Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Google search console warning that data-vocabulary.org schema is deprecated on my sites using Easy Breadcrumb. I've read that in April Google may change it to an error. Is there a plan to remove the itemtype data containing the reference to data-vocabulary.org?
div itemscope class="easy-breadcrumb" itemtype="http://data-vocabulary.org/Breadcrumb
Comment | File | Size | Author |
---|---|---|---|
#46 | easy_breadcrumb-schema-org-3107889-39.patch | 3.02 KB | jonnyToomey |
#39 | easy_breadcrumb-schema-org-3107889-38.patch | 2.91 KB | solideogloria |
#28 | easy_breadcrumb_schema_no_dep.patch | 3.21 KB | MattNHanna |
Issue fork easy_breadcrumb-3107889
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
memoday CreditAttribution: memoday commentedI have just the same message from Google today. Any idea how to resolve this?
Comment #3
pjgermain CreditAttribution: pjgermain as a volunteer commentedSame here, just received notice from Google Search Console.
Comment #4
acHere is a quick patch to remove it.
Comment #5
sabaruhee CreditAttribution: sabaruhee commentedEven I am facing the same issue.
"data-vocabulary.org schema deprecated".
But, I am not using 'Easy Breadcrumb' module.
Any suggestions?
Thanks in advance!
Comment #6
Vali Hutchison CreditAttribution: Vali Hutchison commentedYou can also fix this by copying the easy-breadcrumb.tpl.php file that is in the tpl folder into the templates folder of your theme and then adjusting the HTML - in my case I simply changed:
<div itemscope class="easy-breadcrumb" itemtype="<?php print $list_type; ?>">
to
<div itemscope class="easy-breadcrumb">
Remmeber to clear the caches for Drupal to pick up on this template.
Comment #7
Abidkhan00314 CreditAttribution: Abidkhan00314 commentedSame Problem Here in Blogger What Should I Do to Fix it
Comment #8
Arm77 CreditAttribution: Arm77 commented#4 Worked for me thanks ac.
Comment #9
memoday CreditAttribution: memoday commentedThe problem is that I am getting this and I don't even use easy_breadcrumb. I did search for ''data-vocabulary.org' across all files in my Drupal directory, and I cannot find it anywhere. I have no clue what and where to fix :-(
It seems it's happening on my blog posts where I use Debut Blog module.
If I view source, I see this:
Comment #10
Vali Hutchison CreditAttribution: Vali Hutchison commented@memoday - it might be that the ''data-vocabulary.org" part is inserted during page build (which looks to be the case with the easy breadcrumb module) - so maybe try searching across your Drupal install for this:
itemtype
If that doesn't work then look at the HTML source code of the page that Goolge has flagged up for the part in the HTML that contains the ''data-vocabulary.org" part and look for HTML close to that and search for that in your code.
Comment #11
memoday CreditAttribution: memoday commentedThank you so much @vali-hutchison for your support and help!
Here is what I get if I search for 'itemscope itemtype'
grep -iRl "itemscope itemtype" ./
./sites/all/modules/metatag/metatag_google_plus/metatag_google_plus.module
./sites/all/modules/metatag/metatag_google_plus/README.txt
Searching for 'itemtype' only, yields this:
grep -iRl "itemtype" ./
./sites/all/modules/metatag/metatag_google_plus/tests/metatag_google_plus.tags.test
./sites/all/modules/metatag/metatag_google_plus/metatag_google_plus.module
./sites/all/modules/metatag/metatag_google_plus/metatag_google_plus.metatag.inc
./sites/all/modules/metatag/metatag_google_plus/metatag_google_plus.inc
./sites/all/modules/metatag/metatag_google_plus/README.txt
./sites/all/modules/metatag/CHANGELOG.txt
./sites/all/modules/metatag/README.txt
./sites/all/modules/metatag/metatag_views/tests/metatag_views_tests.views_default.inc
./sites/all/modules/entity/includes/entity.wrapper.inc
Any idea if any of those is causing the problem? I need to dig more for this, and maybe open each file of those to see what is happening, but I cannot find any mention of 'data-vocabulary.org' which is driving me crazy.
Comment #12
Vali Hutchison CreditAttribution: Vali Hutchison commented@memoday sounds like a it might be a combination of the metatag module plus another module (or theme) that is then injecting the text inot the itemtype attirbute. I think you are better off creating a new issue in the metatag module issue queue for this?
Comment #13
douglasbeale CreditAttribution: douglasbeale commentedSame issue and I'm also not using 'Easy Breadcrumb' module.
I do use Ubercart and had some redundant category names in which the pages Google flagged were in multiple.
I deleted the two redundancy and asked Google to Validate my fixes.
Will post if validation works or not in next few days.
Comment #14
mike_san CreditAttribution: mike_san commentedThanks for this, I have two sites using this module - I'll check and see if I get any more Google notifications
Comment #15
oxy86 CreditAttribution: oxy86 as a volunteer commentedAffected too. Patch in #4 only works if '
schemaorg
' module is present (it actually checks if it is installed).It does not work when '
schema_metatag
' is used. And if you try to change it to apply its magic ifschema_metatag
is installed you get warning in Google'e structured data tool.Copying easy-breadcrumb.tpl.php into your theme and changing it as described in #6 fixes the issue - although Google's tool keeps warning about some Unspecified Type (due to "
<span itemprop="title">
")Comment #16
vvcaressingaporepteltd CreditAttribution: vvcaressingaporepteltd commentedSIMPLE & SHORT meaning: - Google stopped to use the data-vocabulary markups [aka RDFa] - So, we need to change our websites to Schema.org markups.
We will keep update the working samples here. Keep check this page often for next few days..
There is a simple working examples listed on GOOGLE SEARCH CONSOLE WARNING data-vocabulary.org
Comment #17
vvcaressingaporepteltd CreditAttribution: vvcaressingaporepteltd commentedComment #18
lebster CreditAttribution: lebster commentedPatch #4 looks good.
http://data-vocabulary.org/Breadcrumb is 404 now.
As an another solution you could install schema.org module as well.
Comment #19
Arm77 CreditAttribution: Arm77 commentedI have installed schema.org module.
Then applied patch #4.
And now there is a new Google error: Missing field "itemListElement"
I see the problem is much deeper and the whole thing needs to be rewritten.
Comment #20
lebster CreditAttribution: lebster commentedHi guys, I have checked information regarding breadcrumb metadata and corresponding to this article I have added the necessary changes to the patch.
I have tested the result via Google's structured data testing tool and things looks good for me.
Before: https://d.pr/i/N35njE
After: https://d.pr/i/jojpt5
Comment #21
Arm77 CreditAttribution: Arm77 commentedExcellent work lebster, just applied your patch #20 all looks good and also passed the Google test. Thank you.
Comment #22
lu_smithcon CreditAttribution: lu_smithcon commentedThank you @lebster. #20 worked for me and the site looks good according to Google's structured data testing tool.
Comment #23
douglasbeale CreditAttribution: douglasbeale commentedI also turned off the breadcrumbs, because I didn't need them, in template settings (Adaptivetheme).
I'm not sure what caused the correction, but now after 14 days when I go to
Breadcrumbs>data-vocabulary.org schema deprecated>Validation details
I can see that all pages have been moved from "Failed" to "Other"
Google say, "other is equivalent to pass, no more for you to do"
Comment #24
misterdidi CreditAttribution: misterdidi commentedUsing @lebster patch #20 almost fixed it for me. But I had to handle the specific case in which some of the breadcrumb items do not have any link. According to Google structured data testing tool, for these breadcrumb item, I was building a ListItem without an "item" element.
To fix it, I put the itemtype="http://schema.org/Thing" in the tpl.php file to ensure that a Thing element is given for each breadcrumb item.
Basically, I removed these two lines from the patched .module file:
And added the following to the tpl.php file instead:
Comment #25
lebster CreditAttribution: lebster commentedHi @misterdidi, not sure how it is possible. Check the screenshot https://d.pr/i/jSPMq3, there are two last items has no links.
Comment #26
misterdidi CreditAttribution: misterdidi commentedHi @lebster,
To be honest, I don't know either.
It's just that according to my own experience with the Google structured data testing tool, my structured data did not pass because the breadcrumb items without link were indeed in the scope of a ListItem type but Google kept telling me I was missing the ListItem "item" property (although I found no mention of it being a mandatory property) and "name" property did not apply to ListItem (which does not make sense to me as ListItem inherits from Thing).
In the end, I found out that embedding a Thing type as "item" property into each ListItem would solve my problem.
Comment #27
MattNHanna CreditAttribution: MattNHanna commentedlebster's patch in #20 proved insufficient for our sites as our breadcrumbs had relative links in them, causing the Google structured data testing tool to not pick up the anchor tags as being items. Explicitly creating a new item scope and setting the itemid as the absolute version of the URL in the tag's href was necessary to get it to pass the testing tool. I've attached a patch containing the changes in #20 with the additional changes I had made.
Comment #28
MattNHanna CreditAttribution: MattNHanna commentedI have additionally removed the schemaorg module as a dependency as the original patch in #20 does not seem to actually require it.
Comment #29
rcodina CreditAttribution: rcodina commentedPatch on #28 works for me!
Comment #30
Greg BoggsComment #31
Greg BoggsComment #32
pontus.froden CreditAttribution: pontus.froden commentedPatch in #28 works for me in 2.x version.
Comment #33
Greg BoggsHow is that possible? The 2.x branch is D9. This patch is D7?
Comment #34
pontus.froden CreditAttribution: pontus.froden commentedSorry I meant 7.x-2.x :)
Comment #35
Greg BoggsThanks for the review!
Comment #36
solideogloria CreditAttribution: solideogloria commentedComment #37
solideogloria CreditAttribution: solideogloria commentedComment #38
solideogloria CreditAttribution: solideogloria commentedduplicate comment removed
Comment #39
solideogloria CreditAttribution: solideogloria commentedThe patch in #28 did not apply. I re-rolled the patch, and I fixed the coding standards issue from #28's job (I removed a comma). I also changed patched lines to use single quotes for strings, and HTTPS for schema.org links.
Comment #41
solideogloria CreditAttribution: solideogloria commentedThe patch only "failed" because the branch is failing testing. It is actually an improvement, as it removes the coding standards issue from #28.
Comment #42
John_B CreditAttribution: John_B commentedI have read the code, and checked that the patch applies to dev and works on our staging site. I find it good. Thanks solideogloria!
Comment #43
Greg Boggsif we open this as a MR, Ill go ahead and merge it.
Comment #45
solideogloria CreditAttribution: solideogloria commentedHere you go.
Comment #46
jonnyToomey CreditAttribution: jonnyToomey commentedCan we add a the aria-label attribute to the anchor tag to fix accessibility issue if you're using an image for Home instead of text?
Patch #39 therefore would look like the attached