Title: Error message: Uncaught ArgumentCountError: Too few arguments to function
Last modified: June 16, 2020

---

# Error message: Uncaught ArgumentCountError: Too few arguments to function

 *  [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * (@vasyltech)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-message-uncaught-argumentcounterror-too-few-arguments-to-function/)
 * Plugin causes the fatal error in other plugins that use [login_redirect](https://developer.wordpress.org/reference/hooks/login_redirect/)
   WordPress core filter.
 * This is due to the fact that the plugin is implemented to invoke the mentioned
   filter only with one argument instead of 3:
 * apply_filters( ‘login_redirect’, $redirect_to )

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Access Keys (Alson)](https://wordpress.org/support/users/alsonthakuri/)
 * (@alsonthakuri)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-message-uncaught-argumentcounterror-too-few-arguments-to-function/#post-12998050)
 * Hi [@vasyltech](https://wordpress.org/support/users/vasyltech/)
 * Thank you for writing in.
 * Please try deactivating all plugins temporarily to see if this resolves the problem.
   If this works, re-activate them individually (one-by-one) to find the problematic
   plugin(s).
 * Please do let us know the result.
 * Regards!
 *  Thread Starter [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * (@vasyltech)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-message-uncaught-argumentcounterror-too-few-arguments-to-function/#post-12998138)
 * [@alsonthakuri](https://wordpress.org/support/users/alsonthakuri/),
 * Thank you for coming back. Let me rephrase the statements a bit.
 * The “AccessPress Social Login Lite – Social Login WordPress Plugin” invokes the
   WordPress core filter `login_redirect` incorrectly. Any other plugin that uses
   the same filter will fail because this filter expects 3 arguments to be passed.
   However, the “AccessPress Social Login Lite – Social Login WordPress Plugin” 
   passes only 1 argument which violates the WordPress core protocol for this filter.
 * Thank you for your support.
    Regards, Vasyl
 *  [Access Keys (Alson)](https://wordpress.org/support/users/alsonthakuri/)
 * (@alsonthakuri)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/error-message-uncaught-argumentcounterror-too-few-arguments-to-function/#post-13008997)
 * Hi [@vasyltech](https://wordpress.org/support/users/vasyltech/)
 * Thank you for writing back.
 * Yes, you are absolutely right. The login_redirect hook expects 3 parameters.
 * Can you please send us the screenshot of the error so that it will be easy for
   
   us to identify and resolve errors.Also, is the error you mentioned effecting 
   the workflow of our plugin?
 * If we found out that the issue is from our plugin, we will soon work on updating
   the plugin. Thank you for mentioning the error.
 * Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error message: Uncaught ArgumentCountError: Too few arguments to function’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accesspress-social-login-lite_692f2e.
   svg)
 * [AccessPress Social Login Lite - Social Login WordPress Plugin](https://wordpress.org/plugins/accesspress-social-login-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accesspress-social-login-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accesspress-social-login-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/accesspress-social-login-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accesspress-social-login-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accesspress-social-login-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Access Keys (Alson)](https://wordpress.org/support/users/alsonthakuri/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/error-message-uncaught-argumentcounterror-too-few-arguments-to-function/#post-13008997)
 * Status: not resolved