call_user_func_array() expects parameter 1 to be a valid callback woocommerce code example
Example 1: Warning: call_user_func_array() expects parameter 1 to be a valid callback
Somewhere in your theme or plugins is a line like this:
add_filter( 'something', 'regis_options' );
Could also be add_action(). Find that piece of code and remove or fix it.
Example 2: call_user_func_array() expects parameter 1
function bindQueryParams($sql, $param_type, $param_value_array) {
$param_value_reference[] = & $param_type;
for($i=0; $i<count($param_value_array); $i++) {
$param_value_reference[] = & $param_value_array[$i];
}
call_user_func_array(array( $sql,
'bind_param'
),
$param_value_reference);
}
function insert($query, $param_type, $param_value_array) {
$sql = $this->conn->prepare($query);
$this->bindQueryParams($sql, $param_type, $param_value_array);
$sql->execute();
}
function update($query, $param_type, $param_value_array) {
$sql = $this->conn->prepare($query);
$this->bindQueryParams($sql, $param_type, $param_value_array);
$sql->execute();
}