• Hi there,

    when i am using the product search on my website it comes up with this error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/myhome/domains/myhome.com/public_html/wordpress/wp-includes/plugin.php on line 235

    Line 235 contains this
    $value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));

    I think i had this error before but don’t know where. I looked for the error on the forums and came across this.

    add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
    
    function woo_rename_tabs( $tabs ) {
    
    	global $product;
    	
    	if( $product->has_attributes() || $product->has_dimensions() || $product->has_weight() ) { // Check if product has attributes, dimensions or weight
    		$tabs['additional_information']['title'] = __( 'Product Data' );	// Rename the additional information tab
    	}
     
    	return $tabs;
     
    }

    Added that to my functions.php but without succes.

    PHP is not my strongpoint so help is needed here ??

    Thanks for your time,

    Sjoerd

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    I believe that error indicates that there’s no search term being searched for. Are you using a customised search field / widget? Are you still experiencing the same issue after deactivating all of your plugins (except WooCommerce) and switching to the default Twenty Sixteen theme?

    Thread Starter sjoerd89

    (@sjoerd89)

    I have tried the twenty sixteen theme with no succes since the search button won’t show up. Also tried deactivating plugins without succes. The search error i think will only show up using the woocommerce product search widget. If i use the default theme its search option with the same search text it will not give this error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘call_user_func_array()’ is closed to new replies.