PHP fatal error during WP Cron after update 1.7.0
-
Hi,
After updating WP 2FA to version 1.7.0, there has been multiple entries in the error log related to WP 2FA causing PHP fatal error. This has not occurred prior to version 1.7.0.
The error log is reproduced below:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to WP2FA\Admin\User::setUserStatus() must be an instance of WP_User, null given, called in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php on line 430 and defined in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php:455 Stack trace: #0 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(430): WP2FA\Admin\User::setUserStatus(NULL) #1 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(60): WP2FA\Admin\User->setUserPoliciesAndGrace() #2 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Cron/CronTasks.php(50): WP2FA\Admin\User->__construct('3843') #3 [snipped-path]/wp-includes/class-wp-hook.php(292): WP2FA\Cron\CronTasks->wp_2fa_check_users_grace_period_status() #4 [snipped-path]/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php on line 455 Fatal error: Uncaught TypeError: Argument 1 passed to WP2FA\Admin\User::setUserStatus() must be an instance of WP_User, null given, called in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php on line 430 and defined in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php:455 Stack trace: #0 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(430): WP2FA\Admin\User::setUserStatus(NULL) #1 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(60): WP2FA\Admin\User->setUserPoliciesAndGrace() #2 [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Cron/CronTasks.php(50): WP2FA\Admin\User->__construct('3843') #3 [snipped-path]/wp-includes/class-wp-hook.php(292): WP2FA\Cron\CronTasks->wp_2fa_check_users_grace_period_status() #4 [snipped-path]/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', in [snipped-path]/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php on line 455 Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP fatal error during WP Cron after update 1.7.0’ is closed to new replies.