Home › Forums › WoodMart support forum › PHP Fatal error on variable product
PHP Fatal error on variable product
- This topic has 8 replies, 2 voices, and was last updated 10 months ago by
Artem Temos.
-
AuthorPosts
-
June 26, 2024 at 11:42 am #575597
qtwrk555Participant[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(5226): 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('/var/www/vhosts...')\n#16 /home/xxx/public_html/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('/var/www/vhosts...')\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('/var/www/vhosts...')\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('/var/www/vhosts...')\n#28 /home/xxx/public_html/wp-blog-header.php(19): require_once('/var/www/vhosts...')\n#29 /home/xxx/public_html/index.php(17): require('/var/www/vhosts...')\n#30 {main}\n thrown in /home/xxx/public_html/wp-includes/blocks.php on line 1409\n
June 26, 2024 at 11:45 am #575601
qtwrk555ParticipantPHP version 8.2
June 26, 2024 at 2:07 pm #575645
Artem TemosKeymasterHello,
Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page BuilderThank you in advance.
June 26, 2024 at 8:48 pm #575746
qtwrk555Participantokay , I disabled all plugins , narrow it down to OMFG seems causing the error
but error log shows it might be something to do with theme file ?
June 27, 2024 at 9:18 am #575782
Artem TemosKeymasterWe investigated this problem but can’t understand why the OMFG plugin works this way. This bug should be investigated by the plugin developer. Otherwise, we will have to declare this plugin as incompatible with our theme.
Please contact the plugin developers for further assistance.
June 27, 2024 at 10:23 am #575842
qtwrk555Participantif you have investigated , do you have any information to share that I can forwarded to OMFG ?
June 27, 2024 at 10:55 am #575856
Artem TemosKeymasterOur investigation confirms that the error only occurs when this plugin is activated. Unfortunately, we don’t have specific details on why the plugin behaves this way as it involves internal compatibility with our theme.
June 27, 2024 at 6:56 pm #576033
qtwrk555Participantokay , while I am checking with OMFG support
do you have any suggestion from your side to localize the google font for GDPR compliance since OMFG is no go at this point and I would like to develop some contingency backup plan.
June 28, 2024 at 9:10 am #576111
Artem TemosKeymasterUnfortunately, we don’t have a plugin to recommend you for this case.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register