Title: call_user_func_array() expects parameter 1 to be a valid callback
Last modified: February 28, 2023

---

# call_user_func_array() expects parameter 1 to be a valid callback

 *  Resolved [spiritofindia](https://wordpress.org/support/users/spiritofindia/)
 * (@spiritofindia)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-a-valid-callback-23/)
 * 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.
    -  This topic was modified 3 years, 3 months ago by [spiritofindia](https://wordpress.org/support/users/spiritofindia/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [spiritofindia](https://wordpress.org/support/users/spiritofindia/)
 * (@spiritofindia)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-a-valid-callback-23/#post-16515142)
 * 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
    -  This reply was modified 3 years, 3 months ago by [spiritofindia](https://wordpress.org/support/users/spiritofindia/).

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.

## Tags

 * [call_user_func_array](https://wordpress.org/support/topic-tag/call_user_func_array/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 1 participant
 * Last reply from: [spiritofindia](https://wordpress.org/support/users/spiritofindia/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/call_user_func_array-expects-parameter-1-to-be-a-valid-callback-23/#post-16515142)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
