-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
This happened on a site where tablepress is installed when running any cli command and having the latest version of the NCCM plugin activated:
❯ wp plugin list
Fatal error: Uncaught Error: Call to undefined function is_user_logged_in() in /srv/htdocs/wp-content/plugins/tablepress/classes/class-wp_user_option.php:40
Stack trace:
#0 /srv/htdocs/wp-content/plugins/tablepress/classes/class-wp_option.php(57): TablePress_WP_User_Option->_get_option('tablepress_user...', NULL)
#1 /srv/htdocs/wp-content/plugins/tablepress/classes/class-tablepress.php(239): TablePress_WP_Option->__construct(Array)
#2 /srv/htdocs/wp-content/plugins/tablepress/models/model-options.php(95): TablePress::load_class('TablePress_WP_U...', 'class-wp_user_o...', 'classes', Array)
#3 /srv/htdocs/wp-content/plugins/tablepress/classes/class-tablepress.php(239): TablePress_Options_Model->__construct(NULL)
#4 /srv/htdocs/wp-content/plugins/tablepress/classes/class-tablepress.php(256): TablePress::load_class('TablePress_Opti...', 'model-options.p...', 'models')
#5 /srv/htdocs/wp-content/plugins/tablepress/classes/class-tablepress.php(149): TablePress::load_model('options')
#6 /srv/htdocs/wp-content/plugins/newspack-custom-content-migrator/src/Logic/TablePress.php(43): TablePress::run()
#7 /srv/htdocs/wp-content/plugins/newspack-custom-content-migrator/src/Command/General/TablePressMigrator.php(27): NewspackCustomContentMigrator\Logic\TablePress->__construct()
#8 /srv/htdocs/wp-content/plugins/newspack-custom-content-migrator/src/Command/General/TablePressMigrator.php(38): NewspackCustomContentMigrator\Command\General\TablePressMigrator->__construct()
#9 /srv/htdocs/wp-content/plugins/newspack-custom-content-migrator/src/PluginSetup.php(63): NewspackCustomContentMigrator\Command\General\TablePressMigrator::get_instance()
#10 /srv/htdocs/wp-content/plugins/newspack-custom-content-migrator/newspack-custom-content-migrator.php(29): NewspackCustomContentMigrator\PluginSetup::register_migrators(Array)
..... EDITED OUT IRRELEVANT STUFF
#19 {main}
thrown in /srv/htdocs/wp-content/plugins/tablepress/classes/class-wp_user_option.php on line 40
Metadata
Metadata
Assignees
Labels
No labels