This topic is: resolved
-
Hi support,
I saw a very long list of a same error in error log. I wonder if this is normal.
Here’s the error message –
[05-Sep-2016 14:13:18 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/user/public_html/wp-content/themes/woow/woocommerce/single-product/tabs/tabs.php on line 43
When I go to single-product/tabs/tabs.php, I found the following code in line 43 –
<?php call_user_func( $tab['callback'], $key, $tab ) ?>
Anything wrong with the above code, or does it have to do with the following code I added in ‘custom code’ to rename the product tab?
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['additional_information']['title'] = __( 'Specification' ); // Rename the additional information tab return $tabs; }
I would greatly appreciate if you can advise. The site works fine and I have no clue why I keep seeing the same repeated error message in error log.