'name' => 'Admin\Settings\Email', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Settings\Captcha\Page', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Settings\Payments', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Tools\Tools', 'hook' => 'current_screen', ], [ 'name' => 'Admin\Payments\Payments', 'hook' => 'init', ], [ 'name' => 'Admin\Payments\Views\Overview\Ajax', 'hook' => 'admin_init', 'run' => 'hooks', 'condition' => wpforms_is_admin_ajax(), ], [ 'name' => 'Admin\Tools\Importers', 'hook' => 'admin_init', 'run' => 'load', 'condition' => wp_doing_ajax(), ], [ 'name' => 'Admin\Pages\Addons', 'id' => 'addons_page', ], [ 'name' => 'Admin\Pages\ConstantContact', 'hook' => 'admin_init', ], [ 'name' => 'Forms\Fields\Richtext\EntryViewContent', ], [ 'name' => 'Admin\DashboardWidget', 'hook' => wpforms()->is_pro() ? 'admin_init' : 'init', ], [ 'name' => 'Emails\Preview', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Addons\GoogleSheets', 'hook' => 'admin_init', ], [ 'name' => 'Admin\PluginList', 'id' => 'plugin_list', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Splash\SplashScreen', 'id' => 'splash_screen', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Splash\SplashCache', 'id' => 'splash_cache', 'hook' => 'plugins_loaded', ], [ 'name' => 'Admin\Splash\SplashUpgrader', 'id' => 'splash_upgrader', 'hook' => 'plugins_loaded', ] ); } /** * Populate Caches related classes. * * @since 1.8.7 */ private function populate_caches() { array_push( $this->classes, [ 'name' => 'LicenseApi\PluginUpdateCache', 'id' => 'license_api_plugin_update_cache', ], [ 'name' => 'LicenseApi\PluginInfoCache', 'id' => 'license_api_plugin_info_cache', ], [ 'name' => 'LicenseApi\ValidateKeyCache', 'id' => 'license_api_validate_key_cache', ] ); } /** * Populate Fields related classes. * * @since 1.8.2 */ private function populate_fields() { $this->classes[] = [ 'name' => 'Forms\Fields\PaymentCheckbox\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\PaymentMultiple\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\PaymentSelect\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\PaymentSingle\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\PaymentTotal\Field', 'hook' => 'init', ]; // Load custom captcha field class. $this->classes[] = [ 'name' => 'Forms\Fields\CustomCaptcha\Field', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Layout\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Layout\Process', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Layout\Notifications', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Repeater\Field', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Repeater\Process', 'id' => 'repeater_process', 'hook' => 'init', ]; $this->classes[] = [ 'name' => 'Forms\Fields\Repeater\Notifications', 'hook' => 'init', ]; } /** * Populate Forms Overview admin page related classes. * * @since 1.7.5 */ private function populate_forms_overview() { if ( ! wpforms_is_admin_page( 'overview' ) && ! wpforms_is_admin_ajax() ) { return; } array_push( $this->classes, [ 'name' => 'Admin\Forms\Ajax\Columns', 'id' => 'forms_columns_ajax', ], [ 'name' => 'Admin\Forms\Ajax\Tags', 'id' => 'forms_tags_ajax', ], [ 'name' => 'Admin\Forms\Search', 'id' => 'forms_search', ], [ 'name' => 'Admin\Forms\Views', 'id' => 'forms_views', ], [ 'name' => 'Admin\Forms\BulkActions', 'id' => 'forms_bulk_actions', ], [ 'name' => 'Admin\Forms\Tags', 'id' => 'forms_tags', ] ); } /** * Populate Entries related classes. * * @since 1.8.6 */ private function populate_entries() { array_push( $this->classes, [ 'name' => 'Admin\Entries\PageOptions', 'id' => 'entries_page_options', ], [ 'name' => 'Admin\Entries\Page', 'id' => 'entries_list_page', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Entries\Overview\Page', 'id' => 'entries_overview', ], [ 'name' => 'Admin\Entries\Overview\Ajax', 'hook' => 'admin_init', 'run' => 'hooks', 'condition' => wpforms_is_admin_ajax(), ], [ 'name' => 'Admin\Entries\Ajax\Columns', 'id' => 'entries_columns_ajax', ], [ 'name' => 'Admin\Entries\Edit', 'id' => 'entries_edit', 'hook' => 'admin_init', ], [ 'name' => 'Admin\Entries\Export\Export', ], [ 'name' => 'Admin\Entries\DefaultScreen', 'hook' => 'admin_init', ] ); } /** * Populate Form Builder related classes. * * @since 1.6.8 */ private function populate_builder() { array_push( $this->classes, [ 'name' => 'Admin\Builder\HelpCache', 'id' => 'builder_help_cache', ], [ 'name' => 'Admin\Builder\Help', 'id' => 'builder_help', ], [ 'name' => 'Admin\Builder\Shortcuts', ], [ 'name' => 'Admin\Builder\TemplatesCache', 'id' => 'builder_templates_cache', ], [ 'name' => 'Admin\Builder\TemplateSingleCache', 'id' => 'builder_template_single', ], [ 'name' => 'Admin\Builder\Templates', 'id' => 'builder_templates', ], [ 'name' => 'Admin\Builder\AntiSpam', 'hook' => 'wpforms_builder_init', ], [ 'name' => 'Admin\Builder\Settings\Themes', 'hook' => 'wpforms_builder_init', ], [ 'name' => 'Admin\Builder\Notifications\Advanced\EmailTemplate', 'hook' => 'wpforms_builder_init', ], [ 'name' => 'Admin\Builder\ContextMenu', 'hook' => 'wpforms_builder_init', 'id' => 'context_menu', ], [ 'name' => 'Admin\Builder\Notifications\Advanced\Settings', ], [ 'name' => 'Admin\Builder\Notifications\Advanced\FileUploadAttachment', ], [ 'name' => 'Admin\Builder\Notifications\Advanced\EntryCsvAttachment', ], [ 'name' => 'Admin\Builder\Ajax\PanelLoader', ], [ 'name' => 'Admin\Builder\Addons', ] ); } /** * Populate database classes. * * @since 1.8.2 */ private function populate_db() { $this->classes[] = [ 'name' => 'Db\Payments\Payment', 'id' => 'payment', 'hook' => false, 'run' => false, ]; $this->classes[] = [ 'name' => 'Db\Payments\Meta', 'id' => 'payment_meta', 'hook' => false, 'run' => false, ]; $this->classes[] = [ 'name' => 'Db\Payments\Queries', 'id' => 'payment_queries', 'hook' => false, 'run' => false, ]; } /** * Populate migration classes. * * @since 1.5.9 */ private function populate_migrations() { $this->classes[] = [ 'name' => 'Migrations\Migrations', 'hook' => 'plugins_loaded', ]; } /** * Populate access management (capabilities) classes. * * @since 1.5.8 */ private function populate_capabilities() { array_push( $this->classes, [ 'name' => 'Access\Capabilities', 'id' => 'access', 'hook' => 'plugins_loaded', ], [ 'name' => 'Access\Integrations', ], [ 'name' => 'Admin\Settings\Access', 'condition' => is_admin(), ] ); } /** * Populate tasks related classes. * * @since 1.5.9 */ private function populate_tasks() { array_push( $this->classes, [ 'name' => 'Tasks\Tasks', 'id' => 'tasks', 'hook' => 'init', ], [ 'name' => 'Tasks\Meta', 'id' => 'tasks_meta', 'hook' => false, 'run' => false, ] ); } /** * Populate smart tags loaded classes. * * @since 1.6.7 */ private function populate_smart_tags() { $this->classes[] = [ 'name' => 'SmartTags\SmartTags', 'id' => 'smart_tags', 'run' => 'hooks', ]; } /** * Populate logger loaded classes. * * @since 1.6.3 */ private function populate_logger() { $this->classes[] = [ 'name' => 'Logger\Log', 'id' => 'log', 'hook' => false, 'run' => 'hooks', ]; } /** * Populate education related classes. * * @since 1.6.6 */ private function populate_education() { // Kill switch. /** * Filters admin education status. * * @since 1.6.6 * * @param bool $status Current admin education status. * * @return bool */ if ( ! apply_filters( 'wpforms_admin_education', true ) ) { // phpcs:ignore WPForms.PHP.ValidateHooks.InvalidHookName return; } // Education core classes. array_push( $this->classes, [ 'name' => 'Admin\Education\Core', 'id' => 'education', ], [ 'name' => 'Admin\Education\Fields', 'id' => 'education_fields', ], [ 'name' => 'Admin\Education\Admin\Settings\SMTP', 'id' => 'education_smtp_notice', ], [ 'name' => 'Admin\Education\Admin\EditPost', 'hook' => 'load-edit.php', ], [ 'name' => 'Admin\Education\Admin\EditPost', 'hook' => 'load-post-new.php', ], [ 'name' => 'Admin\Education\Admin\EditPost', 'hook' => 'load-post.php', ], [ 'name' => 'Admin\Education\Pointers\Payment', 'hook' => 'admin_init', 'priority' => 20, ] ); // Education features classes. $features = [ 'LiteConnect', 'Builder\Calculations', 'Builder\Captcha', 'Builder\Fields', 'Builder\Settings', 'Builder\Providers', 'Builder\Payments', 'Builder\DidYouKnow', 'Builder\Geolocation', 'Builder\Confirmations', 'Builder\Notifications', 'Admin\DidYouKnow', 'Admin\Settings\Integrations', 'Admin\Settings\Geolocation', 'Admin\NoticeBar', 'Admin\Entries\Geolocation', 'Admin\Entries\UserJourney', ]; foreach ( $features as $feature ) { $this->classes[] = [ 'name' => 'Admin\Education\\' . $feature, ]; } } /** * Populate robots loaded class. * * @since 1.7.0 */ private function populate_robots() { $this->classes[] = [ 'name' => 'Robots', 'run' => 'hooks', ]; } /** * Populate AntiSpam loaded classes. * * @since 1.7.8 */ private function populate_anti_spam() { array_push( $this->classes, [ 'name' => 'AntiSpam\CountryFilter', 'id' => 'antispam_country_filter', 'hook' => 'init', ], [ 'name' => 'AntiSpam\KeywordFilter', 'id' => 'antispam_keyword_filter', 'hook' => 'init', ], [ 'name' => 'AntiSpam\SpamEntry', 'id' => 'spam_entry', 'hook' => 'init', ] ); } }
Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /htdocs/wp-content/plugins/wpforms-lite/includes/functions/access.php:211 Stack trace: #0 /htdocs/wp-content/plugins/wpforms-lite/includes/functions/access.php(211): method_exists(NULL, 'current_user_ca...') #1 /htdocs/wp-content/plugins/wpforms-lite/src/Lite/Integrations/LiteConnect/LiteConnect.php(63): wpforms_current_user_can('manage_options') #2 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(79): WPForms\Lite\Integrations\LiteConnect\LiteConnect->load() #3 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(64): WPForms\Integrations\Loader->load_integration(Object(WPForms\Lite\Integrations\LiteConnect\LiteConnect)) #4 /htdocs/wp-content/plugins/wpforms-lite/src/Integrations/Loader.php(22): WPForms\Integrations\Loader->__construct() #5 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\Integrations\Loader::get_instance('') #6 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Object(WPForms\Providers\Providers), Array) #7 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(305): do_action('wpforms_loaded') #9 /htdocs/wp-includes/class-wp-hook.php(324): WPForms\WPForms->objects('') #10 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #11 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #13 /htdocs/wp-config.php(108): require_once('/htdocs/wp-sett...') #14 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #15 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #16 /htdocs/index.php(17): require('/htdocs/wp-blog...') #17 {main} thrown in /htdocs/wp-content/plugins/wpforms-lite/includes/functions/access.php on line 211