• Plugin causes the fatal error in other plugins that use 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)
  • Hi @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

    (@vasyltech)

    @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

    Hi @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.