• Resolved Marek Soból

    (@panbolec)


    Suddenly all my single/singular pages shows an error in breadcrumb snippet. It started after I updated wpseo to 16.2

    I see in your changelog: “Fixes a bug where the current webpage would not always be referenced correctly in the breadcrumb schema outpu.”, maybe it is related

    I use your filters to modify default behavior and it may be a reason but (1) I never use any brutal hacks, just documented filters. (2) It worked for years. (3) I get no warnings. (4) I disabled all my modifications and the problem persists. (5) I see missing data is available in context, but it is not used.

    Below is a dump from wpseo_schema_breadcrumb filter. As you can see, last item is incomplete for some reason:

    
    
    Array
    (
        [@type] => BreadcrumbList
        [@id] => https://kobietamag.pl/cocktail-me-na-czerwonym-dywanie/#breadcrumb
        [itemListElement] => Array
            (
                [0] => Array
                    (
                        [@type] => ListItem
                        [position] => 1
                        [item] => Array
                            (
                                [@type] => WebPage
                                [@id] => https://kobietamag.pl/
                                [url] => https://kobietamag.pl/
                                [name] => Strona główna
                            )
    
                    )
    
                [1] => Array
                    (
                        [@type] => ListItem
                        [position] => 2
                        [item] => Array
                            (
                                [@type] => WebPage
                                [@id] => https://kobietamag.pl/moda/
                                [url] => https://kobietamag.pl/moda/
                                [name] => Moda
                            )
    
                    )
    
                [2] => Array
                    (
                        [@type] => ListItem
                        [position] => 3
                        [item] => Array
                            (
                                [@type] => WebPage
                                [@id] => https://kobietamag.pl/moda/bizuteria-kolekcje/
                                [url] => https://kobietamag.pl/moda/bizuteria-kolekcje/
                                [name] => Biżuteria
                            )
    
                    )
    
                [3] => Array
                    (
                        [@type] => ListItem
                        [position] => 4
                        [item] => Array
                            (
                                [@id] => https://kobietamag.pl/cocktail-me-na-czerwonym-dywanie/#webpage
                            )
    
                    )
    
            )
    
    )
    ,
    Yoast\WP\SEO\Context\Meta_Tags_Context Object
    (
        [indexable] => Yoast\WP\SEO\Models\Indexable Object
            (
                [id] => 15803
                [permalink] => https://kobietamag.pl/cocktail-me-na-czerwonym-dywanie/
                [permalink_hash] => 55:37ddd7112010d0c45d06c8fcbcc1f1f3
                [object_id] => 46305
                [object_type] => post
                [object_sub_type] => post
                [author_id] => 14
                [post_parent] => 0
                [title] => Cocktail' me na czerwonym dywanie
                [description] => Przepych, blask i mocne akcenty – to główne elementy hollywoodzkich stylizacji. Istotną rolę odgrywają kolory. To właśnie na jednolitych taflach materiałów biżuteria, która jest niezbędnym elementem trendu, prezentuje się najlepiej.  Oto kod kolorów prosto z czerwonego dywanu.
                [breadcrumb_title] => Cocktail’ me na czerwonym dywanie
                [post_status] => publish
                [is_public] =>
                [is_protected] => 0
                [has_public_posts] =>
                [number_of_pages] =>
                [canonical] =>
                [primary_focus_keyword] =>
                [primary_focus_keyword_score] =>
                [readability_score] => 0
                [is_cornerstone] => 0
                [is_robots_noindex] =>
                [is_robots_nofollow] => 0
                [is_robots_noarchive] =>
                [is_robots_noimageindex] =>
                [is_robots_nosnippet] =>
                [twitter_title] =>
                [twitter_image] => https://kobietamag.pl/wp-content/uploads/2012/02/Cocktaime-na-czerwonym-dywanie.jpg
                [twitter_description] =>
                [twitter_image_id] => 46327
                [twitter_image_source] => featured-image
                [open_graph_title] =>
                [open_graph_description] =>
                [open_graph_image] => https://kobietamag.pl/wp-content/uploads/2012/02/Cocktaime-na-czerwonym-dywanie.jpg
                [open_graph_image_id] => 46327
                [open_graph_image_source] => featured-image
                [open_graph_image_meta] => {"width":1920,"height":960,"url":"https:\/\/kobietamag.pl\/wp-content\/uploads\/2012\/02\/Cocktaime-na-czerwonym-dywanie.jpg","path":"\/home\/kmag\/domains\/kobietamag.pl\/public_html\/wp-content\/uploads\/2012\/02\/Cocktaime-na-czerwonym-dywanie.jpg","size":"full","id":46327,"alt":"Cocktai'me na czerwonym dywanie","pixels":1843200,"type":"image\/jpeg"}
                [link_count] =>
                [incoming_link_count] => 0
                [prominent_words_version] =>
                [created_at] => 2020-05-17 00:01:05
                [updated_at] => 2021-05-17 08:37:31
                [blog_id] => 1
                [language] =>
                [region] =>
                [schema_page_type] =>
                [schema_article_type] =>
                [has_ancestors] => 1
                [estimated_reading_time_minutes] =>
            )
    
        [presentation] => Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation Object
            (
                [model] => Yoast\WP\SEO\Models\Indexable Object
                    (
                        [id] => 15803
                        [permalink] => https://kobietamag.pl/cocktail-me-na-czerwonym-dywanie/
                        [permalink_hash] => 55:37ddd7112010d0c45d06c8fcbcc1f1f3
                        [object_id] => 46305
                        [object_type] => post
                        [object_sub_type] => post
                        [author_id] => 14
                        [post_parent] => 0
                        [title] => Cocktail' me na czerwonym dywanie
                        [description] => Przepych, blask i mocne akcenty – to główne elementy hollywoodzkich stylizacji. Istotną rolę odgrywają kolory. To właśnie na jednolitych taflach materiałów biżuteria, która jest niezbędnym elementem trendu, prezentuje się najlepiej.  Oto kod kolorów prosto z czerwonego dywanu.
                        [breadcrumb_title] => Cocktail’ me na czerwonym dywanie
                        [post_status] => publish
                        [is_public] =>
                        [is_protected] => 0
                        [has_public_posts] =>
                        [number_of_pages] =>
                        [canonical] =>
                        [primary_focus_keyword] =>
                        [primary_focus_keyword_score] =>
                        [readability_score] => 0
                        [is_cornerstone] => 0
                        [is_robots_noindex] =>
                        [is_robots_nofollow] => 0
                        [is_robots_noarchive] =>
                        [is_robots_noimageindex] =>
                        [is_robots_nosnippet] =>
                        [twitter_title] =>
                        [twitter_image] => https://kobietamag.pl/wp-content/uploads/2012/02/Cocktaime-na-czerwonym-dywanie.jpg
                        [twitter_description] =>
                        [twitter_image_id] => 46327
                        [twitter_image_source] => featured-image
                        [open_graph_title] =>
                        [open_graph_description] =>
                        [open_graph_image] => https://kobietamag.pl/wp-content/uploads/2012/02/Cocktaime-na-czerwonym-dywanie.jpg
                        [open_graph_image_id] => 46327
                        [open_graph_image_source] => featured-image
                        [open_graph_image_meta] => {"width":1920,"height":960,"url":"https:\/\/kobietamag.pl\/wp-content\/uploads\/2012\/02\/Cocktaime-na-czerwonym-dywanie.jpg","path":"\/home\/kmag\/domains\/kobietamag.pl\/public_html\/wp-content\/uploads\/2012\/02\/Cocktaime-na-czerwonym-dywanie.jpg","size":"full","id":46327,"alt":"Cocktai'me na czerwonym dywanie","pixels":1843200,"type":"image\/jpeg"}
                        [link_count] =>
                        [incoming_link_count] => 0
                        [prominent_words_version] =>
                        [created_at] => 2020-05-17 00:01:05
                        [updated_at] => 2021-05-17 08:37:31
                        [blog_id] => 1
                        [language] =>
                        [region] =>
                        [schema_page_type] =>
                        [schema_article_type] =>
                        [has_ancestors] => 1
                        [estimated_reading_time_minutes] =>
                    )
    
                [context] => Yoast\WP\SEO\Context\Meta_Tags_Context Object
     *RECURSION*
            )
    
    )
    
    • This topic was modified 2 years, 11 months ago by Yui.
    • This topic was modified 2 years, 11 months ago by Yui. Reason: please use CODE button for code formatting
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    We did make some changes in v16.2 of the Yoast SEO plugin:

    • Fixes a bug where the current webpage would not always be referenced correctly in the breadcrumb schema output.
    • It’s an intentional change to remove all the information except the @id from the last breadcrumb, as it’s identifying that piece by deriving it from the piece that the ID links to. You can learn more about it here.

      Could you check if the single

      Just to clarify, we’re not exactly sure of the filters you used to modify the breadcrumb schema output, but if you use a default setup that doesn’t modify any of the default Yoast SEO schema, does the error still appear in Google’s Rich Results Tool or Structured Data Testing Tool?

      Otherwise, since you are using custom filters to modify the breadcrumb output, we would like to refer you to our Schema API in order to make the necessary changes – https://developer.yoast.com/features/schema/api

      It looks like the WebPage schema type doesn’t have a name value, which is causing this issue – https://developer.yoast.com/features/schema/pieces/webpage/

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New problem 16.2 – breadcrumb Item name/url not specified for singular pages’ is closed to new replies.