Home Forums Theme Support Dokan Warning: call_user_func_array() expects parameter 1 to be a valid callback

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 4 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41176

    Gary
    Member
    Post count: 39

    Hello, I previously installed buddypress which was working ok. I decided to remove it and recently just installed it again. I get this warning above my header when activating the plugin.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘maybe_redirect_404′ not found or invalid function name in /***/***/public_html/wp-includes/plugin.php on line 496

    I have tried to find a solution and to what I understand it is a function which may no longer exist.

    at first I thought it could be an issue with the themes functions.php, so I disabled all plugins other than buddypress and changed the theme to Twenty Fifteen and Fourteen. The message still appeared. I have removed all tables and deleted buddypress, which then I reinstalled and the warning is still there.

    I have a child theme set up and I have a feeling it maybe something to do with the top left menu as I dont use it, im not sure though.

    This is the code I can see at the path of wp-includes/plugin.php on line 496;

    call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));

    Can anyone help me find this code to alter? Do I just remove it once found or should I just change something?

    Kind Regards

    Gary

    #41218

    towhid
    Participant
    Post count: 4505

    Hello Gary,

    Do you have latest version of WordPress. If you not please update with latest version and let me know the result. Before update please backup your site and database for future disaster.

    Thank you 🙂

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

The topic ‘Warning: call_user_func_array() expects parameter 1 to be a valid callback’ is closed to new replies.