Breadcrumb schema generator fatal error
-
Error happens in the line below. If you can give me some idea where to look at that would be nice.
https://github.com/Yoast/wordpress-seo/blob/trunk/src/generators/breadcrumbs-generator.php#L141
[04-Dec-2022 16:41:10 UTC] PHP Fatal error: Uncaught TypeError: Yoast\WP\SEO\Generators\Breadcrumbs_Generator::Yoast\WP\SEO\Generators\{closure}(): Argument #1 ($ancestor) must be of type Yoast\WP\SEO\Models\Indexable, bool given in /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php:141 Stack trace: #0 [internal function]: Yoast\WP\SEO\Generators\Breadcrumbs_Generator->Yoast\WP\SEO\Generators\{closure}() #1 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php(168): array_map() #2 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-presentation.php(765): Yoast\WP\SEO\Generators\Breadcrumbs_Generator->generate() #3 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(64): Yoast\WP\SEO\Presentations\Indexable_Presentation->generate_breadcrumbs() #4 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/schema/breadcrumb.php(37): Yoast\WP\SEO\Presentations\Abstract_Presentation->__get() #5 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/schema-generator.php(129): Yoast\WP\SEO\Generators\Schema\Breadcrumb->generate() #6 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/schema-generator.php(76): Yoast\WP\SEO\Generators\Schema_Generator->generate_graph() #7 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-presentation.php(754): Yoast\WP\SEO\Generators\Schema_Generator->generate() #8 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(64): Yoast\WP\SEO\Presentations\Indexable_Presentation->generate_schema() #9 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presenters/schema-presenter.php(60): Yoast\WP\SEO\Presentations\Abstract_Presentation->__get() #10 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/presenters/schema-presenter.php(44): Yoast\WP\SEO\Presenters\Schema_Presenter->get() #11 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(326): Yoast\WP\SEO\Presenters\Schema_Presenter->present() #12 /home/example.com/public_html/wp-includes/class-wp-hook.php(308): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head() #13 /home/example.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #14 /home/example.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(300): do_action() #16 /home/example.com/public_html/wp-includes/class-wp-hook.php(308): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head() #17 /home/example.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #18 /home/example.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #19 /home/example.com/public_html/wp-includes/general-template.php(3043): do_action() #20 /home/example.com/public_html/wp-content/themes/short-news-pro/header.php(22): wp_head() #21 /home/example.com/public_html/wp-includes/template.php(783): require_once('...') #22 /home/example.com/public_html/wp-includes/template.php(718): load_template() #23 /home/example.com/public_html/wp-includes/general-template.php(48): locate_template() #24 /home/example.com/public_html/wp-content/plugins/sport-events/inc/templates/template-wse-single.php(10): get_header() #25 /home/example.com/public_html/wp-includes/template-loader.php(106): include('...') #26 /home/example.com/public_html/wp-blog-header.php(19): require_once('...') #27 /home/example.com/public_html/index.php(17): require('...') #28 {main} thrown in /home/example.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php on line 141
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Breadcrumb schema generator fatal error’ is closed to new replies.