Fatal Error on search
-
Hello,
I have a fresh installation with Twenty Twenty-Four theme, LearnPress and WooCommerce plugins. When performing the search using a default search form I get a fatal error.
Fatal error: Uncaught Error: Path cannot be empty in /var/www/vhosts/dan-fisher.dev/woo.dan-fisher.dev/wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php on line 203 Call stack: file_get_contents() wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php:203 Automattic\W\B\U\BlockTemplateUtils::build_template_result_from_file() wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php:392 Automattic\W\B\BlockTemplatesController::add_block_templates() wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters() wp-includes/plugin.php:205 apply_filters() wp-includes/block-template-utils.php:1030 get_block_templates() wp-includes/block-template.php:140 resolve_block_template() wp-includes/block-template.php:66 locate_block_template() wp-includes/template.php:66 get_query_template() wp-includes/template.php:515 get_search_template() wp-content/plugins/query-monitor/collectors/theme.php:242 QM_Collector_Theme::action_template_redirect() wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:348 WP_Hook::do_action() wp-includes/plugin.php:517 do_action() wp-includes/template-loader.php:13 require_once() wp-blog-header.php:19 require() index.php:17
You can check it live on the following site https://woo.dan-fisher.dev
Enter the “test” keyword in the search form in the header or go directly to https://woo.dan-fisher.dev/?s=test which is a search result page.The issue gone if LearnPress plugin is disabled. Previously I contacted WooCommerce support here and they said that you might know more about the error.
Let me know if you need any additional info.
Best Regards!
Ramzesimus
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Fatal Error on search’ is closed to new replies.