Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TablepressMigrator throws errors when the file is included #352

Open
naxoc opened this issue Sep 29, 2023 · 0 comments
Open

TablepressMigrator throws errors when the file is included #352

naxoc opened this issue Sep 29, 2023 · 0 comments

Comments

@naxoc
Copy link
Member

naxoc commented Sep 29, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant