elf::REQUIRED_PLUGINS_BY_TYPE_AND_ACTION[$type][$action]); } return $requiredPlugins; } private function getMissingPlugins(array $config): array { $missingPlugins = []; foreach ($config as $requiredPlugin) { if (isset($requiredPlugin['id']) && !$this->wp->isPluginActive($requiredPlugin['id'])) { $missingPlugins[] = $requiredPlugin; } } return $missingPlugins; } public function getCustomErrorMessage($missingPlugin) { if ( $missingPlugin === self::MAILPOET_PREMIUM_PLUGIN['name'] && $this->wp->isPluginActive(self::MAILPOET_PREMIUM_PLUGIN['id']) && (!$this->subscribersFeature->hasValidPremiumKey() || $this->subscribersFeature->check()) ) { return [ 'message' => __('Your current MailPoet plan does not support advanced segments. Please [link]upgrade to a MailPoet Premium plan[/link] to reactivate this segment.', 'mailpoet'), 'link' => 'https://account.mailpoet.com', ]; } return false; } }
Fatal error: Uncaught Error: Class "MailPoet\Segments\SegmentDependencyValidator" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:4728 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4358): MailPoetGenerated\FreeCachedContainer->getSegmentDependencyValidatorService() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4758): MailPoetGenerated\FreeCachedContainer->getFilterHandler2Service() #2 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4798): MailPoetGenerated\FreeCachedContainer->getSegmentSubscribersRepositoryService() #3 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(5268): MailPoetGenerated\FreeCachedContainer->getSubscribersFinderService() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2612): MailPoetGenerated\FreeCachedContainer->getSubscriberSubscribeControllerService() #5 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2640): MailPoetGenerated\FreeCachedContainer->getHooks2Service() #6 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #7 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #8 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #9 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #10 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #11 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #12 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #13 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #14 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #15 /htdocs/index.php(17): require('/htdocs/wp-blog...') #16 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 4728