class-yoast-notification-center fatal error WP CLI
-
We have CLI jobs to import automated data using WP All Import. These jobs are failing because of a fatal error created by class-yoast-notification-center.php (Yoast Premium version 20.3). Error message:
Fatal error: Uncaught Error: Call to undefined function get_userdata() in /home/webproject/web/webproject.nl/public_html/wp-includes/user.php:662 Stack trace: #0 /home/webproject/web/webproject.nl/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(933): get_user_option() #1 /home/webproject/web/webproject.nl/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(920): Yoast_Notification_Center->get_stored_notifications() #2 /home/webproject/web/webproject.nl/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(906): Yoast_Notification_Center->has_stored_notifications() #3 /home/webproject/web/webproject.nl/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(623): Yoast_Notification_Center->remove_storage() #4 /home/webproject/web/webproject.nl/public_html/wp-includes/class-wp-hook.php(308): Yoast_Notification_Center->update_storage() #5 /home/webproject/web/webproject.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /home/webproject/web/webproject.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/webproject/web/webproject.nl/public_html/wp-includes/load.php(1124): do_action() #8 [internal function]: shutdown_action_hook() #9 {main} thrown in /home/webproject/web/webproject.nl/public_html/wp-includes/user.php on line 662
I’m assuming that the notification class does not check if there if it’s operating under a no-user environment like the CLI.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘class-yoast-notification-center fatal error WP CLI’ is closed to new replies.