Home Forums WoodMart support forum error on tabs

error on tabs

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

    razztech
    Participant

    2020/09/09 12:46:39 [error] 21626#0: *77204 FastCGI sent in stderr: “PHP message: PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/hermosac/domains/hermosa.co.il/public_html/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php on line 60” while reading upstream, client: 46.19.85.230, server: hermosa.co.il, request: “GET /product/%d7%a1%d7%98-%d7%93%d7%92%d7%9d-%d7%a1%d7%99%d7%a1-%d7%a9%d7%97%d7%95%d7%a8-2/ HTTP/2.0”, upstream: “fastcgi://unix:/usr/local/php72/sockets/hermosac.sock:”, host: “www.hermosa.co.il”, referrer: “https://www.hermosa.co.il/product-category/%d7%a1%d7%98%d7%99%d7%9d/”

    what can i do on this

    #224865

    Artem Temos
    Keymaster

    Hello,

    Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    Regards

    #224985

    razztech
    Participant

    hi

    am getting this
    https://prnt.sc/ueg2ns

    #224986

    razztech
    Participant

    there is no tabs in other themes this comes from you theme you need to make double check that this title is populated before ruining the function

    #224987

    razztech
    Participant

    here is full error log most of it from this tab problem
    this is my current settings for the tabs
    https://prnt.sc/ueg7sh

    #224988

    razztech
    Participant

    am uploading again

    Attachments:
    You must be logged in to view attached files.
    #225061

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it? Also, switch to the default theme temporarily so we can see how it works. Tabs are WooCommerce functionality and exist on all themes.

    Thank you in advance

    #225283

    razztech
    Participant

    i found these coded is making the problem which i added to child theme
    ///add tab

    add_filter( ‘woocommerce_product_tabs’, ‘my_shipping_tab’ );
    function my_shipping_tab( $tabs ) {
    // Adds the new tab
    $tabs[‘shipping’] = array(
    ‘title’ => __( ‘הוראות כביסה’, ‘child-theme’ ),
    ‘priority’ => 10,
    ‘callback’ => ‘my_shipping_tab_callback’
    );
    return $tabs;
    }

    function my_shipping_tab_callback() {
    // The new tab content
    echo do_shortcode(‘[html_block id="6483"]‘);
    }

    add_filter( ‘woocommerce_product_tabs’, ‘reordered_tabs’, 98 );
    function reordered_tabs( $tabs ) {
    $tabs[‘additional_information’][‘priority’] = 5;
    $tabs[‘shipping’][‘priority’] = 15;
    $tabs[‘woodmart_additional_tab’][‘priority’] = 10;

    return $tabs;
    }

    how can i add another tab to theme by code if this make problems also i tried to change the priority to change the position

    #225361

    Artem Temos
    Keymaster

    Sorry, but additional code customization is out of our theme support scope. We suggest you refer to WooCommerce documentation or contact their support for help.

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