Fatal Error – on login_redirect filter
-
Hi Team,
Thanks for the awesome plugin.
I am getting the Fatal error once, I redirect from Facebook.
Error:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function
I have added
login_redirect
filter in my theme to redirect users to other places.I digged more to find the cause about the Fatal error and I found the issue on plugin here:
public_html/wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php
Line no705
$redirect_to = apply_filters( 'login_redirect', $redirect_to );
here need to pass3
parameter according to WordPress filter mentioned here https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect so I think it would be something like this$redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user );
Can you check and provide me your thoughts please?
- The topic ‘Fatal Error – on login_redirect filter’ is closed to new replies.