Getting a debug error, please help.
-
Hi folks,
Getting the following debug error with a new site I am building. Used this plugin loads of times and never had an issue and can’t seem to shake this one. Any help would be much appreciated.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wpcf7_add_form_tag_count’ not found or invalid function name in /home/mysiteurl/public_html/wp-includes/class-wp-hook.php on line 298
This is the stuff from in and around there in the class-wp-hook.php too if it helps:
public function apply_filters( $value, $args ) {
if ( ! $this->callbacks ) {
return $value;
}$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );do {
$this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );foreach ( $this->callbacks[ $priority ] as $the_ ) {
if( ! $this->doing_action ) {
$args[ 0 ] = $value;
}// Avoid the array_slice if possible.
if ( $the_[‘accepted_args’] == 0 ) {
$value = call_user_func_array( $the_[‘function’], array() );
} elseif ( $the_[‘accepted_args’] >= $num_args ) {
$value = call_user_func_array( $the_[‘function’], $args );
} else {
$value = call_user_func_array( $the_[‘function’], array_slice( $args, 0, (int)$the_[‘accepted_args’] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );$this->nesting_level–;
return $value;
}Thanks in advance.
The topic ‘Getting a debug error, please help.’ is closed to new replies.