0

这是错误:

PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'App\Bootstrap' does not have a method 'monsterinsights_vue_get_notifications' in /home2/*****/public_html/wp-includes/class-wp-hook.php on line 307

这是第 307 行的 class-wp-hook.php 文件:

            // Avoid the array_slice() if possible.
            if ( 0 == $the_['accepted_args'] ) {
                $value = call_user_func( $the_['function'] );
            } elseif ( $the_['accepted_args'] >= $num_args ) {
                $value = call_user_func_array( $the_['function'], $args ); ---> this is line 307
            } else {
                $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
            }

你能帮我解决这个错误吗?谢谢 :)

4

0 回答 0