Type of secret (one of 'register', 'authorize', 'publicize'). * @param \WP_User $user The user object. */ public function jetpack_verify_secrets_success( $action, $user ) { $this->tracking->record_user_event( "jpc_verify_{$action}_success", array(), $user ); } /** * Track that we've failed verifying the secrets. * * @access public * * @param string $action Type of secret (one of 'register', 'authorize', 'publicize'). * @param \WP_User $user The user object. * @param \WP_Error $error Error object. */ public function jetpack_verify_secrets_fail( $action, $user, $error ) { $this->tracking->record_user_event( "jpc_verify_{$action}_fail", array( 'error_code' => $error->get_error_code(), 'error_message' => $error->get_error_message(), ), $user ); } /** * Track a failed login attempt. * * @access public * * @param string $login Username or email address. */ public function wp_login_failed( $login ) { $this->tracking->record_user_event( 'failed_login', array( 'origin_ip' => IP_Utils::get_ip(), 'login' => $login, ) ); } /** * Track a connection failure at the registration step. * * @access public * * @param string|int $error The error code. * @param \WP_Error $registered The error object. */ public function jetpack_connection_register_fail( $error, $registered ) { $this->tracking->record_user_event( 'jpc_register_fail', array( 'error_code' => $error, 'error_message' => $registered->get_error_message(), ) ); } /** * Track that the registration step of the connection has been successful. * * @access public * * @param string $from The 'from' GET parameter. */ public function jetpack_connection_register_success( $from ) { $this->tracking->record_user_event( 'jpc_register_success', array( 'from' => $from, ) ); } /** * Handles the jetpack_xmlrpc_server_event action that combines several types of events that * happen during request serving. * * @param String $action the action name, i.e., 'remote_authorize'. * @param String $stage the execution stage, can be 'begin', 'success', 'error', etc. * @param array|WP_Error|IXR_Error $parameters (optional) extra parameters to be passed to the tracked action. * @param WP_User $user (optional) the acting user. */ public function jetpack_xmlrpc_server_event( $action, $stage, $parameters = array(), $user = null ) { if ( is_wp_error( $parameters ) ) { $parameters = array( 'error_code' => $parameters->get_error_code(), 'error_message' => $parameters->get_error_message(), ); } elseif ( is_a( $parameters, '\\IXR_Error' ) ) { $parameters = array( 'error_code' => $parameters->code, 'error_message' => $parameters->message, ); } $this->tracking->record_user_event( 'jpc_' . $action . '_' . $stage, $parameters, $user ); } /** * Track that the site is incorrectly double-encoding redirects from http to https. * * @access public */ public function jetpack_verify_api_authorization_request_error_double_encode() { $this->tracking->record_user_event( 'error_double_encode' ); } }
Fatal error: Uncaught Error: Class "Automattic\Jetpack\Plugin\Tracking" not found in /htdocs/wp-content/plugins/jetpack/class.jetpack.php:937 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(310): Jetpack->configure('') #1 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(495): do_action('plugins_loaded') #4 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/jetpack/class.jetpack.php on line 937