WooCommerce Product Error

Hi, on all of the new products I add in WooCommerce I get an error below the product:

See this page for example: https://arapina.co.uk/product/vegan-black-forest/

However on all the products I’ve added before it’s not being displayed, for exmaple: https://arapina.co.uk/product/greta/

30-Jul-2019 15:22:04 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/vlntnt/arapina.co.uk/wp-content/themes/pro/woocommerce/single-product/tabs/tabs.php on line 55
[30-Jul-2019 15:22:08 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/vlntnt/arapina.co.uk/wp-content/themes/pro/woocommerce/single-product/tabs/tabs.php on line 55

Can you tell me how should I proceed with it?

Hello @vlntnt,

Thanks for writing in!

Please use the solution shared in following thread:

Thanks.

Hi, I’ve added the WP_Debug false in the wp-config, however the issue is still present. : /

Hello @vlntnt,

Thanks for updating the thread. :slight_smile:

Can you please share website login details and FTP details in secure note for us to take a closer look at the setup?

Thanks.

Sure thing. Thank you.

Hi @vlntnt,

Please also add ini_set( 'display_errors', 0 ); after the WP_DEBUG code.

Hope this helps.

Hi, thank you that worked!

However now there is a blank tab box that remains under the product.

I’ve added this to functions.php to the child theme but it still seems not to be working:

// Remove the additional information tab
function woo_remove_product_tabs( $tabs ) {
unset( $tabs[‘additional_information’] );
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

Hi @vlntnt,

Please try this code:

add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );

function woo_remove_product_tabs( $tabs ) {

	// Remove the description tab.
    if ( isset( $tabs['description'] ) ) {
    	unset( $tabs['description'] );
    }

    return $tabs;
}

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.