• Resolved app1e5auce

    (@app1e5auce)


    Hey there,

    We noticed that all of our Yoast SEO clients now have hundreds of schema markup errors pertaining to breadcrumb schema. The error is that the breadcrumb schema is missing an item name for the very last breadcrumb item. As an example, it would look like this:

    {"@type":"BreadcrumbList","@id":"https://mydomain.com/parent-page/current-page/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WebPage","@id":"https://mydomain.com/parent-page/","url":"https://mydomain.com/parent-page/","name":"Parent Page Title Here"}},{"@type":"ListItem","position":2,"item":{"@id":"https://mydomain.com/parent-page/current-page/#webpage"}}

    As you can see, the very last item in the breadcrumb schema has no “name” attribute. I also tried filling out the advanced setting breadcrumb title for the page, which did nothing.

    So I dug into the code. From what I can see, the file causing this is:

    wordpress-seo/src/generators/schema/breadcrumb.php

    Starting in Yoast 16.2, both the format_last_breadcrumb and create_breadcrumb functions changed. From what I can tell, the problem lies in the format_last_breadcrumb function. Starting in 16.2, format_last_breadcrumb does this:

    unset( $breadcrumb['url'], $breadcrumb['text'], $breadcrumb['@type'] );

    This unsets $breadcrumb[‘text’], and it is never populated again. $breadcrumb[‘text’] is what is populated into the “name” schema attribute above. With no text, it is never populated. If I replace the 16.3 format_last_breadcrumb function with the old 16.1 function, the error is fixed.

    Is there something else that I could be doing on my end to fix this? If so, please let me know. If not, please fix this in a future version.

    Thank you!

    • This topic was modified 3 years, 9 months ago by app1e5auce.
    • This topic was modified 3 years, 9 months ago by app1e5auce.
    • This topic was modified 3 years, 9 months ago by app1e5auce.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello,

    Thanks for reaching out.

    We have a knowledgebase article at https://yoast.com/help/google-search-console-breadcrumb-schema-report/ that describes how to resolve issues relating to the breadcrumb schema Report

    Thread Starter app1e5auce

    (@app1e5auce)

    Hello,

    Yep I went through that article before making my post. All my pages definitely have titles. And as I explained above, entering the advanced breadcrumb title did nothing.

    I don’t think its a coincidence that dozens of clients had no schema issues for months, and now have hundreds of BreadcrumbList schema issues right after Yoast made changes to the breadcrumb schema functions. Especially since I can simply change a single function back to its 16.1 version and all the errors are fixed.

    I also see in your 16.3 release notes:

    Fixes a rare bug where the name property could be missing in the breadcrumb Schema due to plugin conflicts.

    So at least you are aware of the problem. However I’ve disabled all my plugins except Yoast, and the problem persists.

    Would you like me to try anything else on my end?

    • This reply was modified 3 years, 9 months ago by app1e5auce.
    Thread Starter app1e5auce

    (@app1e5auce)

    As an update to any person in the future that find their way here,

    This is a known issue that you can read more about here:

    https://github.com/Yoast/wordpress-seo/issues/17006

    Apparently it is intentional that the final breadcrumb in schema has nothing other than @id, which references another point in the schema that does have all the correct information.

    Some tools (like SEMRush) do not properly detect this. Yoast is working with them to correct those scan errors.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Thank you for sharing the relevant update. We are expecting the relevant fix to be included in the next version v16.4 as well.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Yoast 16.2 & 16.3 break Breadcrumbs Schema’ is closed to new replies.