Skip to:

ANOYING WARNING from call_user_func_array()

  • juanho


    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'maybe_redirect_404' not found or invalid function name in /wp-site/wp-includes/class-wp-hook.php on line 298

    wp 4.7.2, theme twenty-seventeen, all other plugins deactivated, this warning goes away only when i deactivate buddypress.

    I was getting this annoying warning from buddypress, so I decided to deactivated, deleted, and reinstalled; it did’t work, so I went ahead and deleted all tables that I could associate with buddyPress like wp_bp-* then delete all records that were cluttering the wp_options table.
    After reinstallation it came back. Cannot get rid of it.

    Turning warnings off is not a solution, but an evasion, I have another installation that did not give me this problem. this is a development platform so i need all warning to be displayed anyway.

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

  • juanho


    Deactivating components of buddyPress doesen’t help.
    (remaining active components: Buddypress core & Community members)

    Are you using multisite? Do you have NOBLOGREDIRECT set — if so, to what value?
    What version of WordPress are you using?




    i am not using multisite, the other instance of wordpress is working independently on a different location of the same server, completely isolated from one another.
    Wordpress v4.7.2



    Can you follow up on Paul’s suggestion?

    Do you have NOBLOGREDIRECT defined anywhere? Check wp-config.php or check if a plugin or theme is defining it somewhere.

    I’ve added a patch that should fix this issue if NOBLOGREDIRECT is defined, but is running from single site:

    Can you test this out and let us know if this fixes things for you?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar