WPIntell

Source evidence

Fatal error: Uncaught ArgumentCountError:

UsersWP – Social Login · support · 2021-11-04T05:55:00+00:00

mixedsentiment
highseverity
0.88relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 28 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
dossi2dbr resolved
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] 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 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 The forum here converts commas to backticks, try: do_action( 'uwp_social_fields', 'login' , $args); Stiofan 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. 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 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! No problem 🙂

Comments

7 shown
Rahul Gandhi 2021-11-04T06:06:00+00:00

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

dossi2dbr 2021-11-04T07:03:00+00:00

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

Stiofan 2021-11-04T08:40:00+00:00

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

dossi2dbr 2021-11-04T11:52:00+00:00

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.

Stiofan 2021-11-04T13:56:00+00:00

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

dossi2dbr 2021-11-04T14:39:00+00:00

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!

Stiofan 2021-11-04T14:44:00+00:00

No problem 🙂