Support » Plugin: Paid Memberships Pro » Uncaught ArgumentCountError: Too few arguments to function

  • Resolved mahmoud mostafa

    (@logicano)


    in the beginning i want to thank you for the great plugin .
    actually Iam facing an error when trying to login to my website through social login .
    i get this error message ”
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function pmpro_login_redirect(), 1 passed in /home/elhecjsv/elhedya.com/elhedya/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /home/elhecjsv/elhedya.com/elhedya/wp-content/plugins/paid-memberships-pro/includes/login.php:3 Stack trace: #0 /home/elhecjsv/elhedya.com/elhedya/wp-includes/class-wp-hook.php(286): pmpro_login_redirect(‘https://elhedya…’) #1 /home/elhecjsv/elhedya.com/elhedya/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘https://elhedya…’, Array) #2 /home/elhecjsv/elhedya.com/elhedya/wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php(705): apply_filters(‘login_redirect’, ‘https://elhedya…’) #3 /home/elhecjsv/elhedya.com/elhedya/wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php(89): APSL_Lite_Login_Check_Class->loginUser(’21’) #4 /home/elhecjsv/elhedya.com/elhedya/wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php(26): APSL_Lite_Login_Ch in /home/elhecjsv/elhedya.com/elhedya/wp-content/plugins/paid-memberships-pro/includes/login.php on line 3 ”

    the page doesn’t redirect to any page but the login process is working just fine .
    when i diesable the plugin everything works just fine .

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    Hi, there. Thanks for using PMPro. I’m glad it’s working well for you.

    RE this issue, the AccessPress Social Login plugin was using a core WP filter login_redirect, passing just 1 parameter instead of the 3 that core WP passes.

    They could/should update their code to pass all 3 filters, but it’s a relatively benign update for us to default params 2 and 3 to null in this case, so I went ahead and did that in this commit: https://github.com/strangerstudios/paid-memberships-pro/commit/0c395de6897109dcf55a50fbf1637bd90ede558e

    This update will be included in the next version of PMPro that should go out sometime later this week. Thanks.

    Really , I can’t thank you enough It really worked and it was very annoying problem

    thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught ArgumentCountError: Too few arguments to function’ is closed to new replies.