• Resolved dossi2dbr

    (@dossi2dbr)


    Hello,
    On the login page I get the following error message under the form. I can log in, but just not via Google or Facebook.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function UsersWP_Social::social_login_buttons_on_templates(), 1 passed in /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-includes/class-wp-hook.php on line 303 and exactly 2 expected in /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/plugins/userswp-social-login/includes/class-uwp-social.php:144 Stack trace: #0 /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-includes/class-wp-hook.php(303): UsersWP_Social->social_login_buttons_on_templates(‘login’) #1 /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array) #2 /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/themes/listimia/userswp/bootstrap/login.php(66): do_action(‘uwp_social_fiel…’, ‘login’) #4 /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/plugin in /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/plugins/userswp-social-login/includes/class-uwp-social.php on line 144
    Es gab einen kritischen Fehler auf deiner Website.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Are you using the Listimia theme? The issue is login.php file override by the Listimia theme needs to be updated or changed according to the latest version. You will need to modify the login.php file in listimia/userswp/bootstrap/ folder on line no. 66. There is a code <?php do_action( ‘uwp_social_fields’, ‘login’ ); ?> which need to be changed to <?php do_action( ‘uwp_social_fields’, ‘login’ , $args); ?> or you can copy the latest template file from core plugin to your theme. Let me know if it helps.

    Regards,
    Patrik

    Thread Starter dossi2dbr

    (@dossi2dbr)

    Thank you. I changed line 66, but now this message comes up under the login:

    Warning: Use of undefined constant ‘uwp_social_fields’ - assumed '‘uwp_social_fields’' (this will throw an Error in a future version of PHP) in /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/themes/listimia/userswp/bootstrap/login.php on line 66
    
    Warning: Use of undefined constant ‘login’ - assumed '‘login’' (this will throw an Error in a future version of PHP) in /var/www/vhosts/h185420.web207.dogado.net/hierunddirekt/wp-content/themes/listimia/userswp/bootstrap/login.php on line 66
    Plugin Author Stiofan

    (@stiofansisland)

    The forum here converts commas to backticks, try:
    do_action( 'uwp_social_fields', 'login' , $args);

    Stiofan

    Thread Starter dossi2dbr

    (@dossi2dbr)

    Okay, the error messages are gone and the login via Google works. In the meantime, there was also an update from UsersWP. When I log out, it now says: Oops! We ran into an issue.
    Invalid social login provider.

    Plugin Author Stiofan

    (@stiofansisland)

    It looks like that is only an issue if you imidiatly logout after login, I can’t recreate it on our test server so it might be a caching thing. I will look more into it.

    Thanks,

    Stiofan

    Thread Starter dossi2dbr

    (@dossi2dbr)

    That’s right – if I wait a minute after logging in, everything is fine. Then I guess all the problems are solved. I wouldn’t have found all that myself. Thanks a million!

    Plugin Author Stiofan

    (@stiofansisland)

    No problem ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Uncaught ArgumentCountError:’ is closed to new replies.