• Good afternoon!

    In the admin dashboard appear this error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘fix_avas’ not found or invalid function name in /home/customer/www/webname/public_html/wp-includes/class-wp-hook.php on line 287

    I checked this file and there is nothing about that in the line 287

    // Avoid the array_slice() if possible.
    				if ( 0 == $the_['accepted_args'] ) {
    					$value = call_user_func( $the_['function'] );
    				} elseif ( $the_['accepted_args'] >= $num_args ) {
    					//Following line 287
    					$value = call_user_func_array( $the_['function'], $args );
    				} else {
    					$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
    				}

    I used String Locator looking for fix_avas and nothing. No one result appeared.

    Any suggestion?

    Thanks in advance!

    • This topic was modified 4 years, 2 months ago by DGalilea.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Unfortunately, the error message only tells us where the error was discovered, not where the root cause occurred. To learn the root cause, we need data from debug_backtrace(). There is an example custom error handler code on the ‘net somewhere that utilizes this data, which you can use to have the full backtrace be displayed upon PHP errors. It can be pretty useful, but before you go searching for that, the end result is still going to be fix_avas() function is not found. All the backtrace tells us is where the initial callback using the function is. It’s not going to find the function anyway.

    Do you have any idea what fix_avas() is supposed to be? What theme or plugin it might be from? You could try using grep or similar search utility to search all modules in themes and plugins folders for either “fix_avas” or just “avas” in hopes of identifying where the function is supposed to be declared. Your issue is something to take up with the devs of that module, getting a backtrace isn’t going to tell you who that is.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: call_user_func_array() expects parameter’ is closed to new replies.