Title: Warning: call_user_func_array()
Last modified: March 26, 2018

---

# Warning: call_user_func_array()

 *  [mjbiller](https://wordpress.org/support/users/mjbiller/)
 * (@mjbiller)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-33/)
 * Hello, I am using the latest version of WordPress, and version 1.6.0 of Timber,
   and at the top of every page I am getting this warning…
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   wp_header’ not found or invalid function name in /home/bedsforkids/public_html/
   wp-content/plugins/timber-library/lib/Twig.php on line 311
 * In Twig.php line 311 looks like this…
 * return call_user_func_array($function_name, ($args));
 * Please help me get rid of this error warning.
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-call_user_func_array-33%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * (@gchtr)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-33/#post-10134571)
 * Hey [@mjbiller](https://wordpress.org/support/users/mjbiller/)
 * I assume that somewhere in your Twig views, you have a call like the following:
 * `{{ wp_header() }}`
 * or maybe even
 * `{{ function('wp_header') }}`
 * That call should probably be replaced with
 * `{{ function('wp_head') }}`
 * If that doesn’t help, search for `wp_header` in your Twig views to find where
   it’s used and post that code section here so we can see what’s going on.
 * Also, you might want to use
 * `define( 'WP_DEBUG', false );`
 * in your wp-config.php, so that the error doesn’t show up. Ideally, you’d have
   a second setup of the site to test updates and fix errors.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/timber-library/assets/icon-256x256.png?rev=1482054)
 * [Timber](https://wordpress.org/plugins/timber-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timber-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timber-library/)
 * [Active Topics](https://wordpress.org/support/plugin/timber-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timber-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timber-library/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lukas G.](https://wordpress.org/support/users/gchtr/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/warning-call_user_func_array-33/#post-10134571)
 * Status: not resolved