• Resolved tommy1959

    (@tommy1959)


    Suddenly there is a fatal error when trying to edit any page on our website. It occurs on both the stage site and the live one. My guess it must be the recent update?

    As far I can see everything else works, so visitors shouldn’t have any issues. But we cannot edit any page.

    This is the message:

    Fatal error: Uncaught TypeError: Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery::enqueue_styles(): Argument #1 ($block_content) must be of type string, null given, called in /home/nordtecd/nordtec.se/wp-includes/class-wp-hook.php on line 310 and defined in /home/nordtecd/nordtec.se/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/ProductQuery.php:157 Stack trace: #0 /home/nordtecd/nordtec.se/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery->enqueue_styles() #1 /home/nordtecd/nordtec.se/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/nordtecd/nordtec.se/wp-includes/class-wp-block.php(293): apply_filters() #3 /home/nordtecd/nordtec.se/wp-includes/class-wp-block.php(244): WP_Block->render() #4 /home/nordtecd/nordtec.se/wp-includes/class-wp-block.php(244): WP_Block->render() #5 /home/nordtecd/nordtec.se/wp-includes/blocks.php(1072): WP_Block->render() #6 /home/nordtecd/nordtec.se/wp-includes/blocks.php(1110): render_block() #7 /home/nordtecd/nordtec.se/wp-includes/class-wp-hook.php(308): do_blocks() #8 /home/nordtecd/nordtec.se/wp-includes/plugin.php(205): WP_Hook->apply_filters() #9 /home/nordtecd/nordtec.se/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1860): apply_filters() #10 /home/nordtecd/nordtec.se/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response() #11 /home/nordtecd/nordtec.se/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Posts_Controller->get_item() #12 /home/nordtecd/nordtec.se/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #13 /home/nordtecd/nordtec.se/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #14 /home/nordtecd/nordtec.se/wp-includes/rest-api.php(2889): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /home/nordtecd/nordtec.se/wp-includes/block-editor.php(634): array_reduce() #17 /home/nordtecd/nordtec.se/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() #18 /home/nordtecd/nordtec.se/wp-admin/post.php(187): require(‘/home/nordtecd/…’) #19 {main} thrown in /home/nordtecd/nordtec.se/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/ProductQuery.php on line 157

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter tommy1959

    (@tommy1959)

    False alarm. It was an incompatibility issue with Stackable that caused the error. Resolved now.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error thrown in Woocommerce Blocks’ is closed to new replies.