Title: Warning: call_user_func_array() solution
Last modified: August 22, 2016

---

# Warning: call_user_func_array() solution

 *  [alhoseany](https://wordpress.org/support/users/alhoseany/)
 * (@alhoseany)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/)
 * hi,
    i have got this warning on the registration page with theme my login plugin:“
   Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   wp_shake_js’ not found or invalid function name in /wp-includes/plugin.php on
   line 505”
 * and here is the code to fix it:
 *     ```
       function my_login_head() {
       remove_action('login_head', 'wp_shake_js', 12);
       }
       add_action('login_head', 'my_login_head');
       ```
   
 * add that code to functions.php
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

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

 *  [jaykdoe](https://wordpress.org/support/users/jaykdoe/)
 * (@jaykdoe)
 * [11 years ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/#post-5317947)
 * Thanks for this, it fixed my issue. This appears to be a TML related issue rather
   than being theme specific. I guess I’ll go ahead and notify the developer.
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [11 years ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/#post-5317948)
 * That function is only added on _wp-login.php_, so where is that coming from?
 *  Thread Starter [alhoseany](https://wordpress.org/support/users/alhoseany/)
 * (@alhoseany)
 * [11 years ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/#post-5317949)
 * the error was with wordpress version 4 and TML Version 6.3.10
 * the line in plugin.php (line 505) says:
 *     ```
       call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));
       ```
   
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [11 years ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/#post-5317950)
 * The warning comes from `wp_shake_js` being hooked onto the **login_head** action
   when it doesn’t exist. This function is defined in _wp-login.php_. The only place
   that attaches this function to that action is also _wp-login.php_. So, how/where
   are you guys seeing this?

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

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

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/warning-call_user_func_array-solution/#post-5317950)
 * Status: not resolved