Title: Not found or invalid function error
Last modified: August 22, 2016

---

# Not found or invalid function error

 *  Resolved [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/)
 * Hello,
 * I just checked my error_log file and found this warning over and over again..
   I was hoping someone could explain it and possibility present a fix.
 * Thank you!
 * PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   function ‘improved_trim_excerpt’ not found or invalid function name in /home/
   thecircl/public_html/wp-includes/plugin.php on line 214
 * function apply_filters( $tag, $value ) {
    global $wp_filter, $merged_filters,
   $wp_current_filter;
 * $args = array();
 * // Do ‘all’ actions first.
    if ( isset($wp_filter[‘all’]) ) { $wp_current_filter[]
   = $tag; $args = func_get_args(); _wp_call_all_hook($args); }
 * if ( !isset($wp_filter[$tag]) ) {
    if ( isset($wp_filter[‘all’]) ) array_pop(
   $wp_current_filter); return $value; }
 * if ( !isset($wp_filter[‘all’]) )
    $wp_current_filter[] = $tag;
 * // Sort.
    if ( !isset( $merged_filters[ $tag ] ) ) { ksort($wp_filter[$tag]);
   $merged_filters[ $tag ] = true; }
 * reset( $wp_filter[ $tag ] );
 * if ( empty($args) )
    $args = func_get_args();
 * do {
    foreach( (array) current($wp_filter[$tag]) as $the_ ) if ( !is_null($the_[‘
   function’]) ){ $args[1] = $value; **LINE 214** $value = call_user_func_array(
   $the_[‘function’], array_slice($args, 1, (int) $the_[‘accepted_args’])); } } 
   while ( next($wp_filter[$tag]) !== false ); array_pop( $wp_current_filter ); 
   return $value; }

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5490784)
 * – What theme are you using, and..
 * – Can you stop or change the error message by temporarily changing themes
 *  Thread Starter [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5490785)
 * I am using the theme movite.
 * [http://www.magpress.com/wordpress-themes/movite.html](http://www.magpress.com/wordpress-themes/movite.html)
 * I am not sure If i can stop/change the error message when switching themes. Since
   the site is active so i have not tried.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5490790)
 * As far as I know, `improved_trim_excerpt()` isn’t a native WordPress function.
 * There seems to be [a few references](https://www.google.com/#q=improved_trim_excerpt)(
   link goes to Google) to using it in a filter for customizing/replacing the `wp_trim_excerpt`
   function. That makes me think it may be something related to your theme, or maybe
   a plugin meant to customize excerpts. The theme is a commercial purchase, so 
   there’s no way to take a look at the functions file from here.
 *  Thread Starter [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5490801)
 * improved_trim_excerpt() is in the formatting.php of wp-includes/formatting.php
 * I found one article relating to this issue. [http://aaronrussell.co.uk/legacy/improving-wordpress-the_excerpt/](http://aaronrussell.co.uk/legacy/improving-wordpress-the_excerpt/)
 * Also the theme is free if you select “download” under the image in the article
   or use this link [http://www.magpress.com/download/movite.zip](http://www.magpress.com/download/movite.zip)
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5490809)
 * > improved_trim_excerpt() is in the formatting.php of wp-includes/formatting.
   > php
 * If it is, I’m not seeing it. I think you might be confusing it with `wp_trim_excerpt`
 * [https://core.trac.wordpress.org/browser/branches/4.0/src/wp-includes/formatting.php](https://core.trac.wordpress.org/browser/branches/4.0/src/wp-includes/formatting.php)
 * I don’t find it in the [Code Reference ](https://developer.wordpress.org/reference/)
   either.
 * ..and a quick grep of that theme directory didn’t turn up the function.
 * Are you using any plugins that customize your excerpts, or has anyone customized
   your theme’s functions using that filter?
 *  Thread Starter [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5491032)
 * I have been looking around in my plugin’s, but i do not see anything that is 
   causing an issue. I will be testing a couple things in the next couple days and
   let you know.
 *  Thread Starter [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * (@the_circle_pit)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5491074)
 * The improved_trim_exerpt() function was not properly wrote. All is fixed… i think
   so lol
 * Thank you for your help

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Not found or invalid function error’ is closed to new replies.

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 7 replies
 * 2 participants
 * Last reply from: [Jay](https://wordpress.org/support/users/the_circle_pit/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/not-found-or-invalid-function-error-2/#post-5491074)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
