fatal error with Woodmart theme
-
Hi,
I am not exactly sure if this is OMFG issue or theme issue , but once I enable OMFG , one of my product pages crashed with fatal error and generating below log, while if OMFG disabled, this page loads fine.
[STDERR] PHP Warning: Array to string conversion in /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product/add-to-cart/variable.php on line 235\n
[STDERR] PHP Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /home/xxx/public_html/wp-includes/blocks.php:1409\nStack trace:\n#0 /home/xxx/public_html/wp-includes/blocks.php(1409): str_contains()\n#1 /home/xxx/public_html/wp-includes/formatting.php(5227): filter_block_content()\n#2 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): wp_pre_kses_block_attributes()\n#3 /home/xxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#4 /home/xxx/public_html/wp-includes/kses.php(946): apply_filters()\n#5 /home/xxx/public_html/wp-includes/kses.php(754): wp_kses_hook()\n#6 /home/xxx/public_html/wp-includes/kses.php(2172): wp_kses()\n#7 /home/xxx/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/attributes-meta-boxes.php(400): wp_kses_post()\n#8 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): woodmart_add_term_hint()\n#9 /home/xxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#10 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3616): apply_filters()\n#11 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): wc_display_product_attributes()\n#12 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#13 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#14 /home/xxx/public_html/wp-content/plugins/woocommerce/templates/single-product/tabs/additional-information.php(30): do_action()\n#15 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/xxx/public_html...')\n#16 /home/xxx/public_html/
[STDERR] om/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1890): wc_get_template()\n#17 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php(142): woocommerce_product_additional_information_tab()\n#18 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/xxx/public_html...')\n#19 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1643): wc_get_template()\n#20 /home/xxx/public_html/wp-includes/class-wp-hook.php(324): woocommerce_output_product_data_tabs()\n#21 /home/xxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#22 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#23 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(231): do_action()\n#24 /home/xxx/public_html/wp-includes/template.php(812): require('/home/xxx/public_html...')\n#25 /home/xxx/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()\n#26 /home/xxx/public_html/wp-content/themes/woodmart/woocommerce/single-product.php(28): wc_get_template_part()\n#27 /home/xxx/public_html/wp-includes/template-loader.php(106): include('/home/xxx/public_html...')\n#28 /home/xxx/public_html/wp-blog-header.php(19): require_once('/home/xxx/public_html...')\n#29 /home/xxx/public_html/index.php(17): require('/home/xxx/public_html...')\n#30 {main}\n thrown in /home/xxx/public_html/wp-includes/blocks.php on line 1409\nthe log seems more toward the theme , but I can’t get the part disabling OMFG makes it work though.
it would be great if you could share some light about the issue.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.