• Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘redirect_non_logged_users_to_specific_page’ not found or invalid function name in /homepages/43/d667748360/htdocs/wp-includes/class-wp-hook.php on line 286

    i have deactivated all plugins and still have this problem

    this is the line 286

    $value = call_user_func_array( $the_[‘function’], $args );

    its a website that i have took over from someone else to maintain

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried switching to a default 20** theme to see if the error persists?

    Dion

    (@diondesigns)

    The problem is in your theme. Check its functions.php file for a line containing redirect_non_logged_users_to_specific_page — it will be in a line that starts with add_action or add_filter. If you find the line, either delete it or insert two forward slashes at the start so it looks similar to this:

    //add_action('hook', 'redirect_non_logged_users_to_specific_page', 10, 2);
    

    The numbers at the end of the line may not be present, and “hook” is a placeholder for the name of the hook.

    This should resolve the error. You should also contact the theme’s author and report this problem. They may have a better solution…perhaps an update has fixed the problem.

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

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