Warning: include(): Failed opening '/home/shikhroh/public_html/wp-content/plugins/wordpress-seo/vendor/composer/../../src/initializers/migration-runner.php' for inclusion (include_path='.:') in /home/shikhroh/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php on line 444

Warning: include(): Failed opening '/home/shikhroh/public_html/wp-content/plugins/wordpress-seo/vendor/composer/../../src/initializers/woocommerce.php' for inclusion (include_path='.:') in /home/shikhroh/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php on line 444

Warning: Cannot modify header information - headers already sent by (output started at /home/shikhroh/public_html/wp-content/plugins/one-click-demo-import/vendor/composer/ClassLoader.php:444) in /home/shikhroh/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1486
call. * * @since 3.0 * * @param string $path Endpoint route. * @param array $data Data array. * * @return mixed|WP_Error */ public function delete( $path, $data = array() ) { try { $result = $this->request( $path, $data, 'delete' ); return $result; } catch ( Exception $e ) { return new WP_Error( $e->getCode(), $e->getMessage() ); } } /** * Get API endpoint URL for request. * * @since 3.0 * * @param string $path Endpoint path. * * @return string */ private function get_api_url( $path = '' ) { $base = defined( 'WPMUDEV_CUSTOM_API_SERVER' ) && WPMUDEV_CUSTOM_API_SERVER ? WPMUDEV_CUSTOM_API_SERVER : 'https://wpmudev.com/'; $url = "$base/api/{$this->service->name}/{$this->service->version}/"; $url = trailingslashit( $url . $path ); return $url; } /** * Add authorization header. * * @since 3.0 */ private function sign_request() { if ( ! empty( $this->service->api_key ) ) { $this->add_header_argument( 'Authorization', 'Basic ' . $this->service->api_key ); } } /** * Make an API request. * * @since 3.0 * * @param string $path API endpoint route. * @param array $data Data array. * @param string $method API method. * * @return array|WP_Error */ private function request( $path, $data = array(), $method = 'post' ) { $url = $this->get_api_url( $path ); $this->sign_request(); $url = add_query_arg( $this->get_args, $url ); if ( 'post' !== $method && 'patch' !== $method && 'delete' !== $method ) { $url = add_query_arg( $data, $url ); } $args = array( 'user-agent' => WP_SMUSH_UA, 'headers' => $this->headers, 'sslverify' => false, 'method' => strtoupper( $method ), 'timeout' => $this->timeout, ); if ( ! $args['timeout'] || 2 === $args['timeout'] ) { $args['blocking'] = false; } switch ( strtolower( $method ) ) { case 'patch': case 'delete': case 'post': if ( is_array( $data ) ) { $args['body'] = array_merge( $data, $this->post_args ); } else { $args['body'] = $data; } $response = wp_remote_post( $url, $args ); break; case 'head': $response = wp_remote_head( $url, $args ); break; case 'get': $response = wp_remote_get( $url, $args ); break; default: $response = wp_remote_request( $url, $args ); break; } // Log error. if ( is_wp_error( $response ) ) { Helper::logger()->api()->error( sprintf( 'Error [%s->%s]: %s', $method, $path, $response->get_error_message() ) ); } return $response; } }
Fatal error: Uncaught Error: Class 'Smush\Core\Api\Request' not found in /home/shikhroh/public_html/wp-content/plugins/wp-smushit/core/api/class-abstract-api.php:58 Stack trace: #0 /home/shikhroh/public_html/wp-content/plugins/wp-smushit/wp-smush.php(353): Smush\Core\Api\Abstract_API->__construct(false) #1 /home/shikhroh/public_html/wp-content/plugins/wp-smushit/wp-smush.php(283): WP_Smush->init() #2 /home/shikhroh/public_html/wp-content/plugins/wp-smushit/wp-smush.php(256): WP_Smush->__construct() #3 /home/shikhroh/public_html/wp-includes/class-wp-hook.php(324): WP_Smush::get_instance('') #4 /home/shikhroh/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/shikhroh/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/shikhroh/public_html/wp-settings.php(550): do_action('plugins_loaded') #7 /home/shikhroh/public_html/wp-config.php(98): require_once('/home/shikhroh/...') #8 /home/shikhroh/public_html/wp-load.php(50): require_once('/home/shikhroh/...') #9 /hom in /home/shikhroh/public_html/wp-content/plugins/wp-smushit/core/api/class-abstract-api.php on line 58