CheckoutWC bug
-
Hello, we want to use the CheckoutWC plugin on our woocommerce store. There seems to be a conflict between Yoast + CheckoutWC. When we go to the checkout page (when the plugin is enabled) we get the critical error message.
I’ve contacten CheckoutWC support and they say: CheckoutWC is at the start of the stack trace because it triggers a redirect when trying to access checkout, but that would be fairly standard.
The problem really comes from Yoast SEO trying to generate an excerpt for the OG tags where the contents include a WP Block (the <!— wp:generat… ).
This seems to be a Yoast SEO issue. What’s happening:
1. CheckoutWC triggers a redirect on the checkout page
2. During that redirect, Yoast SEO tries to generate Open Graph meta tags by parsing the page content
3. The page content contains GenerateBlocks markup, and Yoast’s attempt to render it in that context causes the fatal errorGenerateBlocks blocks are just standard WordPress blocks — the issue is that Yoast is trying to render block content in a context where the full block rendering pipeline isn’t loaded (during a redirect).
Hopefully you can help fix this issue. Thank you in advance!
-
Hello @dmp10,
Thanks for reaching out. Kindly share a full screenshot of what you have in WordPress > Yoast SEO > Settings > Advanced > Crawl Optimization. You can use any image-sharing service like https://pasteboard.co/, https://snag.gy/, https://snipboard.io/, or even upload the screenshot to your own website. Once you upload it to an image-sharing service, please share the link to the image here.
Hello @maybellyne , here it is: https://pasteboard.co/ntx0iAk3sPgc.png
Thanks for the screenshot. Are you able to share the ciritcal error also?
Yes, below you’ll find an error log (I’ve replaced my real domain for “mydomain.nl”):
[18-Mar-2026 12:43:08 UTC] PHP Warning: Undefined array key 0 in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 551
[18-Mar-2026 12:43:08 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 555
[18-Mar-2026 12:43:08 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/block-supports/settings.php on line 79
[18-Mar-2026 12:43:08 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 560
[18-Mar-2026 12:43:08 UTC] PHP Warning: Attempt to read property "context" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 561
[18-Mar-2026 12:43:08 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564
[18-Mar-2026 12:43:08 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/blocks/gallery.php on line 22
[18-Mar-2026 12:43:08 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php:564
Stack trace:
#0 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2383): WP_Block->render()
#1 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2252): render_block(Array)
#2 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2189): _excerpt_render_inner_blocks(Array, Array)
#3 /home/customer/www/mydomain.nl/public_html/wp-includes/formatting.php(3975): excerpt_remove_blocks('<!-- wp:generat...')
#4 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): wp_trim_excerpt('apply_filters('', Array)
#6 /home/customer/www/mydomain.nl/public_html/wp-includes/post-template.php(436): apply_filters('get_the_excerpt', '', Object(WP_Post))
#7 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php(83): get_the_excerpt(Object(WP_Post))
#8 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php(196): Yoast\WP\SEO\Helpers\Post_Helper->get_the_excerpt(1271)
#9 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(66): Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation->generate_open_graph_description()
#10 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php(33): Yoast\WP\SEO\Presentations\Abstract_Presentation->__get('open_graph_desc...')
#11 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php(37): Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter->get()
#12 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(486): Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present()
#13 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('')
#14 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#15 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#16 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(457): do_action('wpseo_head')
#17 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('')
#18 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#19 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#20 /home/customer/www/mydomain.nl/public_html/wp-includes/general-template.php(3197): do_action('wp_head')
#21 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(237): wp_head()
#22 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(202): Objectiv\Plugins\Checkout\Loaders\Redirect::cfw_wp_head()
#23 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(57): Objectiv\Plugins\Checkout\Loaders\Redirect::head(Array)
#24 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(379): Objectiv\Plugins\Checkout\Loaders\Redirect::checkout()
#25 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/sources/php/functions.php(1880): Objectiv\Plugins\Checkout\Loaders\Redirect::template_redirect()
#26 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): {closure}('')
#27 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#28 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#29 /home/customer/www/mydomain.nl/public_html/wp-includes/template-loader.php(23): do_action('template_redire...')
#30 /home/customer/www/mydomain.nl/public_html/wp-blog-header.php(19): require_once('/home/customer/...')
#31 /home/customer/www/mydomain.nl/public_html/index.php(17): require('/home/customer/...')
#32 {main}
thrown in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564
[18-Mar-2026 12:43:36 UTC] PHP Warning: Undefined array key 0 in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 551
[18-Mar-2026 12:43:36 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 555
[18-Mar-2026 12:43:36 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/block-supports/settings.php on line 79
[18-Mar-2026 12:43:36 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 560
[18-Mar-2026 12:43:36 UTC] PHP Warning: Attempt to read property "context" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 561
[18-Mar-2026 12:43:36 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564
[18-Mar-2026 12:43:36 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/blocks/gallery.php on line 22
[18-Mar-2026 12:43:36 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php:564
Stack trace:
#0 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2383): WP_Block->render()
#1 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2252): render_block(Array)
#2 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2189): _excerpt_render_inner_blocks(Array, Array)
#3 /home/customer/www/mydomain.nl/public_html/wp-includes/formatting.php(3975): excerpt_remove_blocks('<!-- wp:generat...')
#4 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): wp_trim_excerpt('apply_filters('', Array)
#6 /home/customer/www/mydomain.nl/public_html/wp-includes/post-template.php(436): apply_filters('get_the_excerpt', '', Object(WP_Post))
#7 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php(83): get_the_excerpt(Object(WP_Post))
#8 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php(196): Yoast\WP\SEO\Helpers\Post_Helper->get_the_excerpt(1271)
#9 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(66): Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation->generate_open_graph_description()
#10 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php(33): Yoast\WP\SEO\Presentations\Abstract_Presentation->__get('open_graph_desc...')
#11 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php(37): Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter->get()
#12 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(486): Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present()
#13 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('')
#14 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#15 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#16 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(457): do_action('wpseo_head')
#17 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('')
#18 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#19 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#20 /home/customer/www/mydomain.nl/public_html/wp-includes/general-template.php(3197): do_action('wp_head')
#21 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(237): wp_head()
#22 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(202): Objectiv\Plugins\Checkout\Loaders\Redirect::cfw_wp_head()
#23 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(57): Objectiv\Plugins\Checkout\Loaders\Redirect::head(Array)
#24 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(379): Objectiv\Plugins\Checkout\Loaders\Redirect::checkout()
#25 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/sources/php/functions.php(1880): Objectiv\Plugins\Checkout\Loaders\Redirect::template_redirect()
#26 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): {closure}('')
#27 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#28 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#29 /home/customer/www/mydomain.nl/public_html/wp-includes/template-loader.php(23): do_action('template_redire...')
#30 /home/customer/www/mydomain.nl/public_html/wp-blog-header.php(19): require_once('/home/customer/...')
#31 /home/customer/www/mydomain.nl/public_html/index.php(17): require('/home/customer/...')
#32 {main}
thrown in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564
[18-Mar-2026 12:43:46 UTC] PHP Warning: Undefined array key 0 in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 551
[18-Mar-2026 12:43:46 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 555
[18-Mar-2026 12:43:46 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/block-supports/settings.php on line 79
[18-Mar-2026 12:43:46 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 560
[18-Mar-2026 12:43:46 UTC] PHP Warning: Attempt to read property "context" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 561
[18-Mar-2026 12:43:46 UTC] PHP Warning: Attempt to read property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564
[18-Mar-2026 12:43:46 UTC] PHP Warning: Trying to access array offset on value of type null in /home/customer/www/mydomain.nl/public_html/wp-includes/blocks/gallery.php on line 22
[18-Mar-2026 12:43:46 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "parsed_block" on null in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php:564
Stack trace:
#0 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2383): WP_Block->render()
#1 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2252): render_block(Array)
#2 /home/customer/www/mydomain.nl/public_html/wp-includes/blocks.php(2189): _excerpt_render_inner_blocks(Array, Array)
#3 /home/customer/www/mydomain.nl/public_html/wp-includes/formatting.php(3975): excerpt_remove_blocks('<!-- wp:generat...')
#4 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): wp_trim_excerpt('apply_filters('', Array)
#6 /home/customer/www/mydomain.nl/public_html/wp-includes/post-template.php(436): apply_filters('get_the_excerpt', '', Object(WP_Post))
#7 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/helpers/post-helper.php(83): get_the_excerpt(Object(WP_Post))
#8 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-post-type-presentation.php(196): Yoast\WP\SEO\Helpers\Post_Helper->get_the_excerpt(1271)
#9 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(66): Yoast\WP\SEO\Presentations\Indexable_Post_Type_Presentation->generate_open_graph_description()
#10 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/open-graph/description-presenter.php(33): Yoast\WP\SEO\Presentations\Abstract_Presentation->__get('open_graph_desc...')
#11 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/presenters/abstract-indexable-tag-presenter.php(37): Yoast\WP\SEO\Presenters\Open_Graph\Description_Presenter->get()
#12 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(486): Yoast\WP\SEO\Presenters\Abstract_Indexable_Tag_Presenter->present()
#13 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('')
#14 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#15 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#16 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(457): do_action('wpseo_head')
#17 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('')
#18 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#19 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#20 /home/customer/www/mydomain.nl/public_html/wp-includes/general-template.php(3197): do_action('wp_head')
#21 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(237): wp_head()
#22 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(202): Objectiv\Plugins\Checkout\Loaders\Redirect::cfw_wp_head()
#23 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(57): Objectiv\Plugins\Checkout\Loaders\Redirect::head(Array)
#24 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php(379): Objectiv\Plugins\Checkout\Loaders\Redirect::checkout()
#25 /home/customer/www/mydomain.nl/public_html/wp-content/plugins/checkout-for-woocommerce/sources/php/functions.php(1880): Objectiv\Plugins\Checkout\Loaders\Redirect::template_redirect()
#26 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(341): {closure}('')
#27 /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#28 /home/customer/www/mydomain.nl/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#29 /home/customer/www/mydomain.nl/public_html/wp-includes/template-loader.php(23): do_action('template_redire...')
#30 /home/customer/www/mydomain.nl/public_html/wp-blog-header.php(19): require_once('/home/customer/...')
#31 /home/customer/www/mydomain.nl/public_html/index.php(17): require('/home/customer/...')
#32 {main}
thrown in /home/customer/www/mydomain.nl/public_html/wp-includes/class-wp-block.php on line 564Thanks for sharing the error log. It confirms that when a customer reaches the checkout, Yoast SEO tries to “read” your page’s content to generate a social media description. Because your page is built with GenerateBlocks, Yoast gets stuck in a loop while processing those blocks during a redirect, which triggers the “Critical Error.”
Since you don’t need SEO data for a private checkout page, you can manually type in a short sentence in the meta description field, e.g. “Complete your purchase securely on our checkout page.”
Does this resolve the error?
This indeed solves the error! Thank you very much!
You must be logged in to reply to this topic.