Title: Having trouble creating categories: call_user_func_array()  in plugin.php
Last modified: August 20, 2016

---

# Having trouble creating categories: call_user_func_array() in plugin.php

 *  [mic1115](https://wordpress.org/support/users/mic1115/)
 * (@mic1115)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-creating-categories-call_user_func_array-in-pluginphp/)
 * Hi,
    I need some experts advice:
 * I’m using wordpress with the “portfolium” theme from [http://wpshower.com/](http://wpshower.com/)
   but the problem also occurres when I use a default wordpress theme.
 * Here my problem: Whenever I try to create a category in the theme, the following
   error occurres:
 * _Warning: call\_user\_func\_array() [function.call-user-func-array]: First argument
   is expected to be a valid callback, ‘wp\_ajax\_add\_tag’ was given in **/homepages/
   xx/xxxxxx/htdocs/wp-includes/plugin.php** on line 406
    0
 * I deactivated all plugins and also searched for the add_filter line in the functions.
   php, that some people advise to comment out…I don’t’ have a add_filter in there…
 * Here is what line 406 in plugin.php says:
 * do {
    foreach ( (array) current($wp_filter[$tag]) as $the_ ) if ( !is_null($the_[‘
   function’]) ) **call_user_func_array($the_[‘function’], array_slice($args, 0,(
   int) $the_[‘accepted_args’]));**
 *  } while ( next($wp_filter[$tag]) !== false );
 * Does anybody know the mistake? Which callback is the invalid one?
    Thank you 
   very much for helping, everyone!
 * flo

The topic ‘Having trouble creating categories: call_user_func_array() in plugin.
php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mic1115](https://wordpress.org/support/users/mic1115/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-creating-categories-call_user_func_array-in-pluginphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
