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

  • Resolved mahmoud mostafa


    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/ on line 286 and exactly 3 expected in /home/elhecjsv/ Stack trace: #0 /home/elhecjsv/ pmpro_login_redirect(‘https://elhedya…’) #1 /home/elhecjsv/ WP_Hook->apply_filters(‘https://elhedya…’, Array) #2 /home/elhecjsv/ apply_filters(‘login_redirect’, ‘https://elhedya…’) #3 /home/elhecjsv/ APSL_Lite_Login_Check_Class->loginUser(’21’) #4 /home/elhecjsv/ APSL_Lite_Login_Ch in /home/elhecjsv/ 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


    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:

    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.