Sitesao Support
  • Home
  • Themes
  • Plugins
  • Support

Support Forums

Home/Forums/Theme & Template/WOOW – WordPress Theme/PHP Warning error

PHP Warning error

This topic is: resolved
  • September 5, 2016 at 6:57 pm #19787

    sgcyberweb
    Participant

    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.


    Sorry, this forum is for verified users only. Please Login or Register to continue

Log In
Register Lost Password

Forums

  • Theme & Template
  • Plugin & Extension

Our Themes

Our Plugins

Tags

acf ajax Bug conditional logic css demo DHVC DHVC Form email Error footer form gallery Header Image Images layout login luxury mailchimp Menu mobile newsletter Newsri not working page plugin product product page recaptcha shortcode Sidebar Single Product Page spam Submit Submit button template translate Translation update Visual Composer woocommerce Woo Detail Product Page Builder woow WPML
© Copyright Sitesao.com - Support Policy