• 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://www.ads-software.com/plugins/theme-my-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@jfarthing84)

    That function is only added on wp-login.php, so where is that coming from?

    Thread Starter alhoseany

    (@alhoseany)

    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

    (@jfarthing84)

    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.