• Resolved ralsalih

    (@ralsalih)


    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 317

    My 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Do you happen to use other plugins that may customize users or user roles on your site? If so, could you let me know which ones?

    Thread Starter ralsalih

    (@ralsalih)

    Yes we use User Role Editor Pro.
    So this started to happen after we upgraded to php71, put the site behind a loadbalancer, and used wp cassify plugin to login.
    Also, what does “Your current IP” mean which is under jetpack settings/Protect whitelist? I noticed that it doesn’t show my IP address, what IP address should be there?

    Thanks,
    Rusul

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Yes we use User Role Editor Pro.

    I unfortunately don’t have access to that plugin. Could you try to search for all instances of add_action( 'wp_login' in that plugin’s files, and copy the full line here if you find that core somewhere in the plugin?

    Thanks!

    what does “Your current IP” mean which is under jetpack settings/Protect whitelist? I noticed that it doesn’t show my IP address, what IP address should be there?

    It should show your own IP address. If it doesn’t, it could be that your server doesn’t store IP addresses in a regular way. If you let me know your site URL I can take a look at that if you’d like.
    If you want it to remain private, you can also contact us via this contact form:
    https://jetpack.com/contact-support/

    Thread Starter ralsalih

    (@ralsalih)

    Hi Jeremy,

    I didn’t find any “add_action( ‘wp_login'” line in the “User Role Editor Pro” plugin files.

    For the IP question, this is a test server that is running behind a load balancer.

    Please let me know what else do I need to do!

    Thanks for your help,
    Rusul

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I didn’t find any “add_action( ‘wp_login’” line in the “User Role Editor Pro” plugin files.

    Thanks for checking! Would you mind trying to deactivate the plugin, and let me know if the Jetpack error remains?

    For the IP question, this is a test server that is running behind a load balancer.

    Could you then send us the site URL via the contact form above, so we can take a closer look?

    Thanks!

    Thread Starter ralsalih

    (@ralsalih)

    I deactivated the plugin but still jetpack was doing the same thing.
    I opened a support ticket with jetpack.com. Please let me know if you need more info.

    Thanks,
    Rusul

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Jetpack is giving me a blank page when I login through cas’ is closed to new replies.