• Resolved spiritofindia

    (@spiritofindia)


    Today after updating some plugins suddenly I noticed the following error and I am unable to scroll down to access other settings page on the left part and also the bar on the top to visit the site and store is not seen anymore.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘_wp_admin_bar_init’ not found or invalid function name in /data/web/virtuals/300207/virtual/www/domains/site name/wp-includes/class-wp-hook.php on line 308

    How to fix this error?

    Note: I am not using webftp or any other similr software to edit the files, I have a plugin WP manager installed but because of this error I can not access as page is not scrolling.

Viewing 1 replies (of 1 total)
  • Thread Starter spiritofindia

    (@spiritofindia)

    I found the class-wp-hook.php file and this is the code if It helps anyone who knows about coding to figure out what the issue is.

    // Avoid the array_slice() if possible.
    if ( 0 == $the_[‘accepted_args’] ) {
    $value = call_user_func( $the_[‘function’] );
    } elseif ( $the_[‘accepted_args’] >= $num_args ) {
    Line 308 $value = call_user_func_array( $the_[‘function’], $args );
    } else {
    $value = call_user_func_array( $the_[‘function’], array_slice( $args, 0, (int) $the_[‘accepted_args’] ) );
    }

    It is more than 500 line code so I just copied the code from where it starts (I guess) if more info needed happy to provide

Viewing 1 replies (of 1 total)
  • The topic ‘call_user_func_array() expects parameter 1 to be a valid callback’ is closed to new replies.