Working On Login/Registration Redirect

For the login welcome page I want the redirect url to take the member to one of three pages I created depending on the member’s specific membership level between Level0-Level3? This is the url for my login welcome pages:
https://diyinternetmarketer.com/login-welcome-page-level-0/
https://diyinternetmarketer.com/login-welcome-page-level-1/
https://diyinternetmarketer.com/login-welcome-page-level-2/
https://diyinternetmarketer.com/login-welcome-page-level-3/

This is the URL I have put into the General Options, Login Welcome, Special redirect URL field without the quotations,
https://diyinternetmarketer.com/login-welcome-page/%%current_user_level%%

The problem is using this url brings back an error warning:
“Warning: Invalid argument supplied for foreach() in /home/membsite2/public_html/wp-admin/includes/plugin.php on line 1566”

Warning: Cannot modify header information - headers already sent by (output started at /home/membsite2/public_html/wp-admin/includes/plugin.php:1566) in /home/membsite2/public_html/wp-includes/pluggable.php on line 1223

After I login once. In other words it worked correctly on the first try, but when I tried to repeat the login with the same reg URL I get the warning. Can you help?

Then the URL in your setting would be https://diyinternetmarketer.com/login-welcome-page-level-%%current_user_level%%/

Let me know if that helps. :slight_smile:

1 Like

Thank you Cristián for getting back to me.

The first try using the new URL worked fine. On the second try, I get this warning instead. Can you or anyone tell me why I’m getting this warning and how to fix?

“Warning: Invalid argument supplied for foreach() in /home/membsite2/public_html/wp-admin/includes/plugin.php on line 1566”

Warning: Cannot modify header information - headers already sent by (output started at /home/membsite2/public_html/wp-admin/includes/plugin.php:1566) in /home/membsite2/public_html/wp-includes/pluggable.php on line 1223

This may means that you have a syntax error in PHP code, somehow…

1 Like

Do you have custom code in your installation? Maybe a must-use plugin?

Could you do these? https://s2member.com/kb-article/common-troubleshooting-tips/

I look forward to your update. :slight_smile: