Holds the plugin settings. * * @since 1.0.0 * @access public * * @var Settings */ public $settings; /** * Role Manager. * * Holds the plugin role manager. * * @since 2.0.0 * @access public * * @var Core\RoleManager\Role_Manager */ public $role_manager; /** * Admin. * * Holds the plugin admin. * * @since 1.0.0 * @access public * * @var Admin */ public $admin; /** * Tools. * * Holds the plugin tools. * * @since 1.0.0 * @access public * * @var Tools */ public $tools; /** * Preview. * * Holds the plugin preview. * * @since 1.0.0 * @access public * * @var Preview */ public $preview; /** * Editor. * * Holds the plugin editor. * * @since 1.0.0 * @access public * * @var Editor */ public $editor; /** * Frontend. * * Holds the plugin frontend. * * @since 1.0.0 * @access public * * @var Frontend */ public $frontend; /** * Heartbeat. * * Holds the plugin heartbeat. * * @since 1.0.0 * @access public * * @var Heartbeat */ public $heartbeat; /** * System info. * * Holds the system info data. * * @since 1.0.0 * @access public * * @var System_Info_Module */ public $system_info; /** * Template library manager. * * Holds the template library manager. * * @since 1.0.0 * @access public * * @var TemplateLibrary\Manager */ public $templates_manager; /** * Skins manager. * * Holds the skins manager. * * @since 1.0.0 * @access public * * @var Skins_Manager */ public $skins_manager; /** * Files manager. * * Holds the plugin files manager. * * @since 2.1.0 * @access public * * @var Files_Manager */ public $files_manager; /** * Assets manager. * * Holds the plugin assets manager. * * @since 2.6.0 * @access public * * @var Assets_Manager */ public $assets_manager; /** * Icons Manager. * * Holds the plugin icons manager. * * @access public * * @var Icons_Manager */ public $icons_manager; /** * WordPress widgets manager. * * Holds the WordPress widgets manager. * * @since 1.0.0 * @access public * * @var WordPress_Widgets_Manager */ public $wordpress_widgets_manager; /** * Modules manager. * * Holds the plugin modules manager. * * @since 1.0.0 * @access public * * @var Modules_Manager */ public $modules_manager; /** * Beta testers. * * Holds the plugin beta testers. * * @since 1.0.0 * @access public * * @var Beta_Testers */ public $beta_testers; /** * Inspector. * * Holds the plugin inspector data. * * @since 2.1.2 * @access public * * @var Inspector */ public $inspector; /** * @var Admin_Menu_Manager */ public $admin_menu_manager; /** * Common functionality. * * Holds the plugin common functionality. * * @since 2.3.0 * @access public * * @var CommonApp */ public $common; /** * Log manager. * * Holds the plugin log manager. * * @access public * * @var Log_Manager */ public $logger; /** * Dev tools. * * Holds the plugin dev tools. * * @access private * * @var Dev_Tools */ private $dev_tools; /** * Upgrade manager. * * Holds the plugin upgrade manager. * * @access public * * @var Core\Upgrade\Manager */ public $upgrade; /** * Tasks manager. * * Holds the plugin tasks manager. * * @var Core\Upgrade\Custom_Tasks_Manager */ public $custom_tasks; /** * Kits manager. * * Holds the plugin kits manager. * * @access public * * @var Core\Kits\Manager */ public $kits_manager; /** * @var \Elementor\Data\V2\Manager */ public $data_manager_v2; /** * Legacy mode. * * Holds the plugin legacy mode data. * * @access public * * @var array */ public $legacy_mode; /** * App. * * Holds the plugin app data. * * @since 3.0.0 * @access public * * @var App\App */ public $app; /** * WordPress API. * * Holds the methods that interact with WordPress Core API. * * @since 3.0.0 * @access public * * @var Wp_Api */ public $wp; /** * Experiments manager. * * Holds the plugin experiments manager. * * @since 3.1.0 * @access public * * @var Experiments_Manager */ public $experiments; /** * Uploads manager. * * Holds the plugin uploads manager responsible for handling file uploads * that are not done with WordPress Media. * * @since 3.3.0 * @access public * * @var Uploads_Manager */ public $uploads_manager; /** * Breakpoints manager. * * Holds the plugin breakpoints manager. * * @since 3.2.0 * @access public * * @var Breakpoints_Manager */ public $breakpoints; /** * Assets loader. * * Holds the plugin assets loader responsible for conditionally enqueuing * styles and script assets that were pre-enabled. * * @since 3.3.0 * @access public * * @var Assets_Loader */ public $assets_loader; /** * Clone. * * Disable class cloning and throw an error on object clone. * * The whole idea of the singleton design pattern is that there is a single * object. Therefore, we don't want the object to be cloned. * * @access public * @since 1.0.0 */ public function __clone() { _doing_it_wrong( __FUNCTION__, sprintf( 'Cloning instances of the singleton "%s" class is forbidden.', get_class( $this ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '1.0.0' ); } /** * Wakeup. * * Disable unserializing of the class. * * @access public * @since 1.0.0 */ public function __wakeup() { _doing_it_wrong( __FUNCTION__, sprintf( 'Unserializing instances of the singleton "%s" class is forbidden.', get_class( $this ) ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '1.0.0' ); } /** * Instance. * * Ensures only one instance of the plugin class is loaded or can be loaded. * * @since 1.0.0 * @access public * @static * * @return Plugin An instance of the class. */ public static function instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); /** * Elementor loaded. * * Fires when Elementor was fully loaded and instantiated. * * @since 1.0.0 */ do_action( 'elementor/loaded' ); } return self::$instance; } /** * Init. * * Initialize Elementor Plugin. Register Elementor support for all the * supported post types and initialize Elementor components. * * @since 1.0.0 * @access public */ public function init() { $this->add_cpt_support(); $this->init_components(); /** * Elementor init. * * Fires when Elementor components are initialized. * * After Elementor finished loading but before any headers are sent. * * @since 1.0.0 */ do_action( 'elementor/init' ); } /** * Get install time. * * Retrieve the time when Elementor was installed. * * @since 2.6.0 * @access public * @static * * @return int Unix timestamp when Elementor was installed. */ public function get_install_time() { $installed_time = get_option( '_elementor_installed_time' ); if ( ! $installed_time ) { $installed_time = time(); update_option( '_elementor_installed_time', $installed_time ); } return $installed_time; } /** * @since 2.3.0 * @access public */ public function on_rest_api_init() { // On admin/frontend sometimes the rest API is initialized after the common is initialized. if ( ! $this->common ) { $this->init_common(); } } /** * Init components. * * Initialize Elementor components. Register actions, run setting manager, * initialize all the components that run elementor, and if in admin page * initialize admin components. * * @since 1.0.0 * @access private */ private function init_components() { $this->experiments = new Experiments_Manager(); $this->breakpoints = new Breakpoints_Manager(); $this->inspector = new Inspector(); Settings_Manager::run(); $this->db = new DB(); $this->controls_manager = new Controls_Manager(); $this->documents = new Documents_Manager(); $this->kits_manager = new Kits_Manager(); $this->schemes_manager = new Schemes_Manager(); $this->elements_manager = new Elements_Manager(); $this->widgets_manager = new Widgets_Manager(); $this->skins_manager = new Skins_Manager(); $this->files_manager = new Files_Manager(); $this->assets_manager = new Assets_Manager(); $this->icons_manager = new Icons_Manager(); $this->settings = new Settings(); $this->tools = new Tools(); $this->editor = new Editor(); $this->preview = new Preview(); $this->frontend = new Frontend(); $this->maintenance_mode = new Maintenance_Mode(); $this->dynamic_tags = new Dynamic_Tags_Manager(); $this->modules_manager = new Modules_Manager(); $this->templates_manager = new TemplateLibrary\Manager(); $this->role_manager = new Core\RoleManager\Role_Manager(); $this->system_info = new System_Info_Module(); $this->revisions_manager = new Revisions_Manager(); $this->images_manager = new Images_Manager(); $this->wp = new Wp_Api(); $this->assets_loader = new Assets_Loader(); $this->uploads_manager = new Uploads_Manager(); $this->admin_menu_manager = new Admin_Menu_Manager(); $this->admin_menu_manager->register_actions(); User::init(); Api::init(); Tracker::init(); $this->upgrade = new Core\Upgrade\Manager(); $this->custom_tasks = new Core\Upgrade\Custom_Tasks_Manager(); $this->app = new App\App(); if ( is_admin() ) { $this->heartbeat = new Heartbeat(); $this->wordpress_widgets_manager = new WordPress_Widgets_Manager(); $this->admin = new Admin(); $this->beta_testers = new Beta_Testers(); new Elementor_3_Re_Migrate_Globals(); } } /** * @since 2.3.0 * @access public */ public function init_common() { $this->common = new CommonApp(); $this->common->init_components(); } /** * Get Legacy Mode * * @since 3.0.0 * @deprecated 3.1.0 Use `Plugin::$instance->experiments->is_feature_active()` instead * * @param string $mode_name Optional. Default is null * * @return bool|bool[] */ public function get_legacy_mode( $mode_name = null ) { self::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation ->deprecated_function( __METHOD__, '3.1.0', 'Plugin::$instance->experiments->is_feature_active()' ); $legacy_mode = [ 'elementWrappers' => ! self::$instance->experiments->is_feature_active( 'e_dom_optimization' ), ]; if ( ! $mode_name ) { return $legacy_mode; } if ( isset( $legacy_mode[ $mode_name ] ) ) { return $legacy_mode[ $mode_name ]; } // If there is no legacy mode with the given mode name; return false; } /** * Add custom post type support. * * Register Elementor support for all the supported post types defined by * the user in the admin screen and saved as `elementor_cpt_support` option * in WordPress `$wpdb->options` table. * * If no custom post type selected, usually in new installs, this method * will return the two default post types: `page` and `post`. * * @since 1.0.0 * @access private */ private function add_cpt_support() { $cpt_support = get_option( 'elementor_cpt_support', self::ELEMENTOR_DEFAULT_POST_TYPES ); foreach ( $cpt_support as $cpt_slug ) { add_post_type_support( $cpt_slug, 'elementor' ); } } /** * Register autoloader. * * Elementor autoloader loads all the classes needed to run the plugin. * * @since 1.6.0 * @access private */ private function register_autoloader() { require_once ELEMENTOR_PATH . '/includes/autoloader.php'; Autoloader::run(); } /** * Plugin Magic Getter * * @since 3.1.0 * @access public * * @param $property * @return mixed * @throws \Exception */ public function __get( $property ) { if ( 'posts_css_manager' === $property ) { self::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_argument( 'Plugin::$instance->posts_css_manager', '2.7.0', 'Plugin::$instance->files_manager' ); return $this->files_manager; } if ( 'data_manager' === $property ) { return Data_Manager::instance(); } if ( property_exists( $this, $property ) ) { throw new \Exception( 'Cannot access private property.' ); } return null; } /** * Plugin constructor. * * Initializing Elementor plugin. * * @since 1.0.0 * @access private */ private function __construct() { $this->register_autoloader(); $this->logger = Log_Manager::instance(); $this->data_manager_v2 = Data_Manager_V2::instance(); Maintenance::init(); Compatibility::register_actions(); add_action( 'init', [ $this, 'init' ], 0 ); add_action( 'rest_api_init', [ $this, 'on_rest_api_init' ], 9 ); } final public static function get_title() { return esc_html__( 'Elementor', 'elementor' ); } } if ( ! defined( 'ELEMENTOR_TESTS' ) ) { // In tests we run the instance manually. Plugin::instance(); }
Fatal error: Uncaught Error: Class "MailPoetVendor\Doctrine\DBAL\Types\IntegerType" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Types/Type.php:71 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Types/Type.php(63): MailPoetVendor\Doctrine\DBAL\Types\Type::createTypeRegistry() #1 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Types/Type.php(85): MailPoetVendor\Doctrine\DBAL\Types\Type::getTypeRegistry() #2 /htdocs/wp-content/plugins/mailpoet/lib/Doctrine/ConnectionFactory.php(95): MailPoetVendor\Doctrine\DBAL\Types\Type::hasType('bigint') #3 /htdocs/wp-content/plugins/mailpoet/lib/Doctrine/ConnectionFactory.php(63): MailPoet\Doctrine\ConnectionFactory->setupTypes() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(570): MailPoet\Doctrine\ConnectionFactory->createConnection() #5 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2852): MailPoetGenerated\FreeCachedContainer->getConnectionService() #6 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(580): MailPoetGenerated\FreeCachedContainer->getEntityManagerFactoryService() #7 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4214): MailPoetGenerated\FreeCachedContainer->getEntityManagerService() #8 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4204): MailPoetGenerated\FreeCachedContainer->getSettingsRepositoryService() #9 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2269): MailPoetGenerated\FreeCachedContainer->getSettingsControllerService() #10 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #11 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #12 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #13 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #14 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(206): require_once('/htdocs/wp-cont...') #15 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #16 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #17 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #18 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #19 /htdocs/index.php(17): require('/htdocs/wp-blog...') #20 {main} thrown in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/dbal/lib/Doctrine/DBAL/Types/Type.php on line 71