Title: Warning: call_user_func_array()
Last modified: August 21, 2016

---

# Warning: call_user_func_array()

 *  [Bogdan Batranu](https://wordpress.org/support/users/bogdan-batranu/)
 * (@bogdan-batranu)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/)
 * I modified my theme metabox.php to fit my needs but i get this error when i go
   to add a new listing :
 * > Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   > function ‘mytheme_add_box’ not found or invalid function name in E:\xampp\htdocs\
   > wordpress\wp-includes\plugin.php on line 406
 * I have a online version of this wordpress site but it is not modified if it helps
   this is the website [http://www.dreamsimob.ro](http://www.dreamsimob.ro)
 * this is the old code
 * _[ 439 lines of code moderated, that’s just way too much. [For that many lines of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please use [pastebin.com](http://pastebin.com/) instead. ]_

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

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/#post-4098080)
 * Which theme are you using?
 *  Thread Starter [Bogdan Batranu](https://wordpress.org/support/users/bogdan-batranu/)
 * (@bogdan-batranu)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/#post-4098100)
 * avenue from web2feel
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/#post-4098109)
 * That’s not a theme that’s supported here, only themes downloaded from the [WordPress repo](http://wordpress.org/themes/)
   are.
 * That said, you should back out your changes (obviously 😉 ) and then create a
   child theme of that Avenue theme.
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * Activate that child theme and try your modifications on that child theme instead.
   It’s safer that way.
 * Whatever you do, do not copy the parent theme’s `functions.php` file into the
   child theme directory. That just won’t work. Whatever changes you wanted to make
   usually they can be made by editing copies of the theme files such as `header.
   php` or `footer.php`.
 * For more specific help then consider contacting the theme author.
 * [http://www.web2feel.com/contact-me/](http://www.web2feel.com/contact-me/)
 *  Thread Starter [Bogdan Batranu](https://wordpress.org/support/users/bogdan-batranu/)
 * (@bogdan-batranu)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/#post-4098110)
 * thanks for helping me. i will try to do this way.

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

The topic ‘Warning: call_user_func_array()’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [metabox](https://wordpress.org/support/topic-tag/metabox/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Bogdan Batranu](https://wordpress.org/support/users/bogdan-batranu/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-13/#post-4098110)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
