owable $e) { $this->logError($e, 'WooCommerce Purchases Refund'); } } public function extendForm() { try { $this->subscriberRegistration->extendForm(); } catch (\Throwable $e) { $this->logError($e, 'WooCommerce Extend Form'); } } public function onRegister($errors, string $userLogin, string $userEmail = null) { try { if (empty($errors->errors)) { $this->subscriberRegistration->onRegister($errors, $userLogin, $userEmail); } } catch (\Throwable $e) { $this->logError($e, 'WooCommerce on Register'); } return $errors; } public function updateSubscriberEngagement($orderId) { try { $this->subscriberEngagement->updateSubscriberEngagement($orderId); } catch (\Throwable $e) { $this->logError($e, 'WooCommerce Update Subscriber Engagement'); } } public function updateSubscriberLastPurchase($orderId) { try { $this->subscriberEngagement->updateSubscriberLastPurchase($orderId); } catch (\Throwable $e) { $this->logError($e, 'WooCommerce Update Subscriber Last Purchase'); } } public function declareWooCompatibility() { if (!class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { return; } try { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', Env::$pluginPath); \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', Env::$pluginPath); } catch (\Throwable $e) { $this->logError($e, 'WooCommerce Compatibility'); } } public function addTrackingData($data) { if (!is_array($data)) { return $data; } return $this->tracker->addTrackingData($data); } public function addMailPoetTaskToWooHomePage() { try { if (class_exists(TaskLists::class) && class_exists(Task::class)) { TaskLists::add_task('extended', new MailPoetTask()); } } catch (\Throwable $e) { $this->logError($e, 'Unable to add MailPoet task to WooCommerce homepage'); } } public function addMailPoetMarketingMultiChannel($registeredMarketingChannels) { if (!is_array($registeredMarketingChannels)) { return $registeredMarketingChannels; } return $this->marketingChannelController->registerMarketingChannel($registeredMarketingChannels); } private function logError(\Throwable $e, $name) { $logger = $this->loggerFactory->getLogger($name); $logger->error($e->getMessage(), [ 'file' => $e->getFile(), 'line' => $e->getLine(), ]); } }
Fatal error: Uncaught Error: Class "MailPoet\Config\HooksWooCommerce" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:2622 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2612): MailPoetGenerated\FreeCachedContainer->getHooksWooCommerceService() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2640): MailPoetGenerated\FreeCachedContainer->getHooks2Service() #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #3 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #4 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #5 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #6 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #7 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #8 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 2622