Home Forums WoodMart support forum Warning product page

Warning product page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #220010

    Madoo Webdesign
    Participant

    Hello,

    Query monitor shows message below.

    call_user_func() expects parameter 1 to be a valid callback, no array or string given

    wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php:60
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1538
    woocommerce_output_product_data_tabs()
    wp-includes/class-wp-hook.php:287
    do_action(‘woocommerce_after_single_product_summary’)
    wp-content/themes/woodmart/woocommerce/content-single-product.php:202
    load_template(‘wp-content/themes/woodmart/woocommerce/content-single-product.php’)
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:283
    wc_get_template_part()
    wp-content/themes/woodmart/woocommerce/single-product.php:28

    Can we fix this and how?

    #220093

    Hello,

    Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, if the problem remains, leave the plugins not activated and provide the site admin access to the private area

    Best Regards

    #220825

    Madoo Webdesign
    Participant

    found the problem in functions.php from child theme.

    I add this code below.

    /**
    * Reorder product data tabs
    */
    add_filter( ‘woocommerce_product_tabs’, ‘woo_reorder_tabs’, 98 );
    function woo_reorder_tabs( $tabs ) {

    $tabs[‘description’][‘priority’] = 5; // Description first
    $tabs[‘additional_information’][‘priority’] = 10; // Additional information second
    $tabs[‘woodmart_custom_tab’][‘priority’] = 15; // Download third
    $tabs[‘brand_tab’][‘priority’] = 20; // Reviews fourth
    $tabs[‘reviews’][‘priority’] = 25; // Reviews fifth

    return $tabs;
    }

    This rule is removed: $tabs[‘brand_tab’][‘priority’] = 20; // Reviews fourth

    and warning is gone.

    #220856

    That is fine. If you have any questions please feel free to contact us.

    Best Regards

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