Support

Account

Home Forums General Issues call_user_func_array() expects parameter 1 to be a valid callback

Helping

call_user_func_array() expects parameter 1 to be a valid callback

  • I’m getting a warning currently with my install as follows:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_acf_op_init’ not found or invalid function name in /var/www/vhosts/site.domain/httpdocs/wp-includes/class-wp-hook.php on line 292

    Can anyone shed any light on why this might be happening?

  • Somewhere in your code you have a line that looks something like this
    add_filter('some-hook-name', 'my_acf_op_init');
    or
    add_action('some-hook-name', 'my_acf_op_init');
    the first part is the hook, the error does not indicate what hook it is on. The second part is the function to be called, that function does not exist.

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

You must be logged in to reply to this topic.