ce 1.5.9 * * @return null|string Action ID. */ protected function register_async() { if ( ! function_exists( 'as_enqueue_async_action' ) ) { return null; } return as_enqueue_async_action( $this->action, [ 'tasks_meta_id' => $this->meta_id ], Tasks::GROUP ); } /** * Register the recurring task. * * @since 1.5.9 * * @return null|string Action ID. */ protected function register_recurring() { if ( ! function_exists( 'as_schedule_recurring_action' ) ) { return null; } return as_schedule_recurring_action( $this->timestamp, $this->interval, $this->action, [ 'tasks_meta_id' => $this->meta_id ], Tasks::GROUP ); } /** * Register the one-time task. * * @since 1.5.9 * * @return null|string Action ID. */ protected function register_once() { if ( ! function_exists( 'as_schedule_single_action' ) ) { return null; } return as_schedule_single_action( $this->timestamp, $this->action, [ 'tasks_meta_id' => $this->meta_id ], Tasks::GROUP ); } /** * Cancel all occurrences of this task. * * @since 1.6.1 * * @return null|bool|string Null if no matching action found, * false if AS library is missing, * true if scheduled task has no params, * string of the scheduled action ID if a scheduled action was found and unscheduled. */ public function cancel() { if ( ! function_exists( 'as_unschedule_all_actions' ) ) { return false; } if ( $this->params === null ) { as_unschedule_all_actions( $this->action ); return true; } $this->meta_id = $this->meta->get_meta_id( $this->action, $this->params ); if ( $this->meta_id === null ) { return null; } return as_unschedule_action( $this->action, [ 'tasks_meta_id' => $this->meta_id ], Tasks::GROUP ); } /** * Log message to WPForms logger and standard debug.log file. * * @since 1.9.1 * * @param string $message The error message that should be logged. */ protected function log( $message ) { wpforms_log( $this->log_title, $message, [ 'type' => 'log' ] ); } }
Fatal error: Uncaught Error: Class "WPForms\Tasks\Task" not found in /htdocs/wp-content/plugins/wpforms-lite/src/Tasks/Actions/FormsLocatorScanTask.php:23 Stack trace: #0 /htdocs/wp-content/plugins/unlimited-elements-for-elementor/vendor/composer/ClassLoader.php(578): include() #1 /htdocs/wp-content/plugins/unlimited-elements-for-elementor/vendor/composer/ClassLoader.php(432): Composer\Autoload\ClassLoader::Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 /htdocs/wp-content/plugins/wpforms-lite/src/Forms/Locator.php(180): Composer\Autoload\ClassLoader->loadClass('WPForms\\Tasks\\A...') #3 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(377): WPForms\Forms\Locator->init() #4 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\WPForms->WPForms\{closure}('') #5 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(305): do_action('wpforms_loaded') #8 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\WPForms->objects('') #9 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #12 /htdocs/wp-config.php(78): 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/wpforms-lite/src/Tasks/Actions/FormsLocatorScanTask.php on line 23