Home › Forums › WoodMart support forum › error on tabs
error on tabs
- This topic has 8 replies, 2 voices, and was last updated 4 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
September 9, 2020 at 10:12 am #224827
razztechParticipant2020/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
September 9, 2020 at 11:33 am #224865
Artem TemosKeymasterHello,
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
September 9, 2020 at 5:57 pm #224985
razztechParticipanthi
am getting this
https://prnt.sc/ueg2nsSeptember 9, 2020 at 6:01 pm #224986
razztechParticipantthere 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
September 9, 2020 at 6:06 pm #224987
razztechParticipanthere is full error log most of it from this tab problem
this is my current settings for the tabs
https://prnt.sc/ueg7shSeptember 9, 2020 at 6:06 pm #224988September 10, 2020 at 6:05 am #225061
Artem TemosKeymasterHello,
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
September 10, 2020 at 6:51 pm #225283
razztechParticipanti found these coded is making the problem which i added to child theme
///add tabadd_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
September 11, 2020 at 6:05 am #225361
Artem TemosKeymasterSorry, but additional code customization is out of our theme support scope. We suggest you refer to WooCommerce documentation or contact their support for help.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register