de_callbacks as $callback ) { $updater->push_to_queue( [ 'callback' => $callback, ] ); } $updater->save()->dispatch(); Plugin::$instance->logger->get_logger()->info( 'Elementor data updater process has been queued.', [ 'meta' => [ 'plugin' => $this->get_plugin_label(), 'from' => $this->current_version, 'to' => $this->get_new_version(), ], ] ); } protected function update_db_version() { update_option( $this->get_version_option_name(), $this->get_new_version() ); } public function get_upgrade_callbacks() { $prefix = '_v_'; $upgrades_class = $this->get_upgrades_class(); $upgrades_reflection = new \ReflectionClass( $upgrades_class ); $callbacks = []; foreach ( $upgrades_reflection->getMethods() as $method ) { $method_name = $method->getName(); if ( '_on_each_version' === $method_name ) { $callbacks[] = [ $upgrades_class, $method_name ]; continue; } if ( false === strpos( $method_name, $prefix ) ) { continue; } if ( ! preg_match_all( "/$prefix(\d+_\d+_\d+)/", $method_name, $matches ) ) { continue; } $method_version = str_replace( '_', '.', $matches[1][0] ); if ( ! version_compare( $method_version, $this->current_version, '>' ) ) { continue; } $callbacks[] = [ $upgrades_class, $method_name ]; } return $callbacks; } public function __construct() { // If upgrade is completed - show the notice only for admins. // Note: in this case `should_upgrade` returns false, because it's already upgraded. if ( is_admin() && current_user_can( 'update_plugins' ) && $this->get_flag( 'completed' ) ) { add_action( 'admin_notices', [ $this, 'admin_notice_upgrade_is_completed' ] ); } if ( ! $this->should_upgrade() ) { return; } $updater = $this->get_task_runner(); $this->start_run(); if ( $updater->is_running() && current_user_can( 'update_plugins' ) ) { add_action( 'admin_notices', [ $this, 'admin_notice_upgrade_is_running' ] ); } parent::__construct(); } }
Fatal error: Uncaught Error: Class "Elementor\Core\Base\DB_Upgrades_Manager" not found in /htdocs/wp-content/plugins/elementor/core/upgrade/manager.php:10 Stack trace: #0 /htdocs/wp-content/plugins/elementor/includes/autoloader.php(296): require() #1 /htdocs/wp-content/plugins/elementor/includes/autoloader.php(332): Elementor\Autoloader::load_class('Core\\Upgrade\\Ma...') #2 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(121): Elementor\Autoloader::autoload('Elementor\\Core\\...') #3 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(1014): Elementor\Core\Experiments\Manager->install_compare('3.17.0') #4 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(76): Elementor\Core\Experiments\Manager->set_new_site_default_state(Array, Array) #5 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(307): Elementor\Core\Experiments\Manager->add_feature(Array) #6 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(442): Elementor\Core\Experiments\Manager->add_default_features() #7 /htdocs/wp-content/plugins/elementor/core/experiments/manager.php(930): Elementor\Core\Experiments\Manager->init_features() #8 /htdocs/wp-content/plugins/elementor/includes/plugin.php(732): Elementor\Core\Experiments\Manager->__construct() #9 /htdocs/wp-content/plugins/elementor/includes/plugin.php(673): Elementor\Plugin->init_components() #10 /htdocs/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #11 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /htdocs/wp-settings.php(704): do_action('init') #14 /htdocs/wp-config.php(99): 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/elementor/core/upgrade/manager.php on line 10