Home Forums WoodMart support forum PHP Fatal error on variable product

PHP Fatal error on variable product

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #575597

    qtwrk555
    Participant
    [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
    
    #575601

    qtwrk555
    Participant

    PHP version 8.2

    #575645

    Artem Temos
    Keymaster

    Hello,

    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 Builder

    Thank you in advance.

    #575746

    qtwrk555
    Participant

    okay , 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 ?

    #575782

    Artem Temos
    Keymaster

    We 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.

    #575842

    qtwrk555
    Participant

    if you have investigated , do you have any information to share that I can forwarded to OMFG ?

    #575856

    Artem Temos
    Keymaster

    Our 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.

    #576033

    qtwrk555
    Participant

    okay , 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.

    #576111

    Artem Temos
    Keymaster

    Unfortunately, we don’t have a plugin to recommend you for this case.

Viewing 9 posts - 1 through 9 (of 9 total)