->endpoint_die( 'Lite Connect: nonce verification failed', $response ); } unset( $response['nonce'] ); $settings = get_option( Integration::get_option_name(), [] ); $settings['site'] = $response; update_option( API::GENERATE_KEY_ATTEMPT_COUNTER_OPTION, 0 ); update_option( Integration::get_option_name(), $settings ); exit(); } /** * Finish the endpoint execution with wp_die(). * * @since 1.7.4 * * @param string $title Log message title. * @param array $response Response. * * @noinspection ForgottenDebugOutputInspection */ private function endpoint_die( $title = '', $response = [] ) { // phpcs:ignore WPForms.PHP.HooksMethod.InvalidPlaceForAddingHooks $this->log( $title, $response ); // We call wp_die too early, before the query is run. // So, we should remove some filters to avoid having PHP notices in error log. remove_filter( 'wp_robots', 'wp_robots_noindex_embeds' ); remove_filter( 'wp_robots', 'wp_robots_noindex_search' ); wp_die( esc_html__( 'This is the Lite Connect endpoint page.', 'wpforms-lite' ), 'Lite Connect endpoint', 400 ); } /** * Log message. * * @since 1.7.4 * * @param string $title Log message title. * @param array $response Response. */ private function log( $title = '', $response = [] ) { if ( ! $title ) { return; } wpforms_log( $title, [ 'response' => $response, 'request' => [ 'domain' => isset( $response['domain'] ) ? $response['domain'] : '', 'admin_email' => Integration::get_enabled_email(), ], ], [ 'type' => [ 'error' ] ] ); } }
Fatal error: Uncaught Error: Class "WPForms\Integrations\LiteConnect\LiteConnect" not found in /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/Pro/Integrations/LiteConnect/LiteConnect.php:10 Stack trace: #0 /htdocs/aerosimnews.fr/wp-content/plugins/elementor/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/aerosimnews.fr/wp-content/plugins/elementor/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/aerosim...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WPForms\\Pro\\Int...') #3 /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/Integrations/Loader.php(103): class_exists('WPForms\\Pro\\Int...') #4 /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/Integrations/Loader.php(58): WPForms\Integrations\Loader->register_class('LiteConnect\\Lit...') #5 /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/Integrations/Loader.php(22): WPForms\Integrations\Loader->__construct() #6 /htdocs/aerosimnews.fr/wp-includes/class-wp-hook.php(324): WPForms\Integrations\Loader::get_instance('') #7 /htdocs/aerosimnews.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Object(WPForms\Providers\Providers), Array) #8 /htdocs/aerosimnews.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/WPForms.php(297): do_action('wpforms_loaded') #10 /htdocs/aerosimnews.fr/wp-includes/class-wp-hook.php(324): WPForms\WPForms->objects('') #11 /htdocs/aerosimnews.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /htdocs/aerosimnews.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /htdocs/aerosimnews.fr/wp-settings.php(555): do_action('plugins_loaded') #14 /htdocs/aerosimnews.fr/wp-config.php(96): require_once('/htdocs/aerosim...') #15 /htdocs/aerosimnews.fr/wp-load.php(50): require_once('/htdocs/aerosim...') #16 /htdocs/aerosimnews.fr/wp-blog-header.php(13): require_once('/htdocs/aerosim...') #17 /htdocs/aerosimnews.fr/index.php(17): require('/htdocs/aerosim...') #18 {main} thrown in /htdocs/aerosimnews.fr/wp-content/plugins/wpforms/src/Pro/Integrations/LiteConnect/LiteConnect.php on line 10