Jetpack is giving me a blank page when I login through cas
-
Hi,
Jetpack is throwing a php fatal error and shows a blank page when I login to me website. This started to happen after we upgraded to php71. I had to remove some code from the protect.php file to make it work.
This is the error
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Jetpack_Protect_Module::log_successful_login(), 1 passed in /wp-includes/class-wp-hook.php on line 298 and exactly 2 expected in /wp-content/plugins/jetpack/modules/protect.php:317
Stack trace:
#0 /wp-includes/class-wp-hook.php(298): Jetpack_Protect_Module->log_successful_login(‘MyUsername’)
#1 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /wp-content/plugins/wp-cassify/classes/wp_cassify_utils.php(225): do_action(‘wp_login’, ‘MyUsername’)
#4 /wp-content/plugins/wp-cassify/classes/wp_cassify_plugin.php(459): wp_cassify\WP_Cassify_Utils::wp_cassify_auth_user_wordpress(‘MyUsername’)
#5 /wp-includes/class-wp-hook.php(298): wp_cassify\WP_Cassify_Plugin->wp_cassify_grab_service_ticket(”)
#6 /wp-includes/class-wp-hook.php(32 in /wp-content/plugins/jetpack/modules/protect.php on line 317My temporary fix was removing the code (that I changed to capital letters to differentiate) below which is under /wp-content/plugins/jetpack/modules/protect.php
public function log_successful_login( $user_login, $USER ) {
$this->protect_call( ‘successful_login’, ARRAY ( ‘ROLES’ => $USER->ROLES ) );
}Please help!
Thanks,
Rusul
- The topic ‘Jetpack is giving me a blank page when I login through cas’ is closed to new replies.