• Resolved Debugger

    (@retrobeatcom)


    Hi team,
    I would like to bring to Your attention a warning that is produced during the login process (Facebook login in my case).

    Bellow is the output:

    [Fri Mar 23 09:52:27.604862 2018] [:error] [pid 24590] [client IP:10187] PHP Warning:  Invalid argument supplied for foreach() in /var/www/SITE/wp-content/plugins/nextend-social-login-pro/class-provider-extension.php on line 75, referer: https://site.com/wp-login.php?loginSocial=facebook&code=CODE&state=STATE
    [Fri Mar 23 13:24:53.149739 2018] [:error] [pid 26060] [client ANOTHER_IP:32765] PHP Warning:  Invalid argument supplied for foreach() in /var/www/SITE/wp-content/plugins/nextend-social-login-pro/class-provider-extension.php on line 75, referer: https://site.com/wp-login.php?loginSocial=facebook&code=CODE&state=STATE
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @retrobeatcom!

    Please upen up that file:
    \wp-content\plugins\nextend-social-login-pro\class-provider-extension.php
    and around line 20 you can find this line:

    add_filter('nsl_' . $id . '_is_login_allowed', array(
        $this,
        'isLoginAllowed'
    ), 10, 2);

    You should change the number 2 to 3:

    add_filter('nsl_' . $id . '_is_login_allowed', array(
        $this,
        'isLoginAllowed'
    ), 10, 3);

    Also at line 70.:
    public function isLoginAllowed($isAllowed, $user_id) {

    Add a $provider variable too:
    public function isLoginAllowed($isAllowed, $provider, $user_id) {

    That should fix the problem and this will be in the next versions too!

    Thread Starter Debugger

    (@retrobeatcom)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning when loggin in’ is closed to new replies.