lt whether classic search is enabled. */ if ( apply_filters( 'jetpack_search_classic_search_enabled', ! $is_instant_search_enabled ) ) { // Enable the classic search experience. $success = static::init_classic_search( $blog_id ); } if ( $success ) { // registers Jetpack Search widget. add_action( 'widgets_init', array( static::class, 'jetpack_search_widget_init' ) ); } return $success; } /** * Init Instant Search and its dependencies. * * @param int $blog_id WPCOM blog ID. */ protected static function init_instant_search( $blog_id ) { /** * The filter allows abortion of the Instant Search initialization. * * @since 0.11.2 * * @param boolean $init_instant_search Default value is true. */ if ( ! apply_filters( 'jetpack_search_init_instant_search', true ) ) { return; } // Enable the instant search experience. Instant_Search::initialize( $blog_id ); // Register instant search configurables as WordPress settings. new Settings(); // Instantiate "Customberg", the live search configuration interface. Customberg::instance(); // Enable configuring instant search within the Customizer iff it's not using a block theme. if ( ! wp_is_block_theme() ) { new Customizer(); } return true; } /** * Init Classic Search. * * @param int $blog_id WPCOM blog ID. */ protected static function init_classic_search( $blog_id ) { /** * The filter allows abortion of the Classic Search initialization. * * @since 0.11.2 * * @param boolean $init_instant_search Default value is true. */ if ( ! apply_filters( 'jetpack_search_init_classic_search', true ) ) { return; } Inline_Search::get_instance_maybe_fallback_to_classic( $blog_id ); return true; } /** * Register jetpack-search CLI if `\CLI` exists. * * @return void */ protected static function init_cli() { if ( defined( 'WP_CLI' ) && \WP_CLI ) { \WP_CLI::add_command( 'jetpack-search', __NAMESPACE__ . '\CLI' ); } } /** * Register the widget if Jetpack Search is available and enabled. */ public static function jetpack_search_widget_init() { register_widget( 'Automattic\Jetpack\Search\Search_Widget' ); } /** * Check if site has been connected. */ protected static function is_connected() { return ( new Connection_Manager( Package::SLUG ) )->is_connected(); } /** * Check if search is supported by current plan. */ protected static function is_search_supported() { return ( new Plan() )->supports_search(); } /** * Perform necessary initialization steps for classic and instant search in the constructor. * * @deprecated */ public static function initialize() { return new WP_Error( 'invalid-method', /* translators: %s: Method name. */ sprintf( __( "Method '%s' not implemented. Must be overridden in subclass.", 'jetpack-search-pkg' ), __METHOD__ ), array( 'status' => 405 ) ); } } get_batch_size(): int { return 1; } }
Fatal error: Uncaught Error: Class "WooCommerce\Facebook\Feed\FeedGenerator" not found in /htdocs/wp-content/plugins/facebook-for-woocommerce/includes/Feed/Promotions/PromotionsFeedGenerator.php:23 Stack trace: #0 /htdocs/wp-content/plugins/backwpup/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/backwpup/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 /htdocs/wp-content/plugins/facebook-for-woocommerce/includes/Feed/Promotions/PromotionsFeed.php(39): Composer\Autoload\ClassLoader->loadClass('WooCommerce\\Fac...') #3 /htdocs/wp-content/plugins/facebook-for-woocommerce/includes/Feed/FeedManager.php(58): WooCommerce\Facebook\Feed\PromotionsFeed->__construct() #4 /htdocs/wp-content/plugins/facebook-for-woocommerce/includes/Feed/FeedManager.php(42): WooCommerce\Facebook\Feed\FeedManager->create_feed('promotions') #5 /htdocs/wp-content/plugins/facebook-for-woocommerce/class-wc-facebookcommerce.php(210): WooCommerce\Facebook\Feed\FeedManager->__construct() #6 /htdocs/wp-content/plugins/facebook-for-woocommerce/class-wc-facebookcommerce.php(159): WC_Facebookcommerce->init() #7 /htdocs/wp-content/plugins/facebook-for-woocommerce/class-wc-facebookcommerce.php(769): WC_Facebookcommerce->__construct() #8 /htdocs/wp-content/plugins/facebook-for-woocommerce/class-wc-facebookcommerce.php(884): WC_Facebookcommerce::instance() #9 /htdocs/wp-content/plugins/facebook-for-woocommerce/facebook-for-woocommerce.php(157): facebook_for_woocommerce() #10 /htdocs/wp-includes/class-wp-hook.php(341): WC_Facebook_Loader->init_plugin('') #11 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #12 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #13 /htdocs/wp-settings.php(593): do_action('plugins_loaded') #14 /htdocs/wp-config.php(102): require_once('/htdocs/wp-sett...') #15 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #16 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #17 /htdocs/index.php(17): require('/htdocs/wp-blog...') #18 {main} thrown in /htdocs/wp-content/plugins/facebook-for-woocommerce/includes/Feed/Promotions/PromotionsFeedGenerator.php on line 23