After a user registers to my site the page goes blank no message appears on the screen no 404 just a blanks screen. However the registration information goes through and i can see thereβs a new user pending approval. Β My issue is I donβt want the user to go to a blank screen. can someone help me troubleshoot?
Just to add I use https://wordpress.org/plugins/new-user-approve/ pluginΒ
Hi @bmorepun,
Please navigate to the Dashboard > Forums > Settings > Members admin page and make sure these fields are empty:
Hi @alvina Thanks for getting back to me so quickly.Β
Yes these fields are currently empty.Β
What I'm trying to do is require the admin to approve new members before a user has access to the wpforo. Once approved then the user is granted access to the forum.Β I'm currently using "New User Approve" plugin. Is there a plugin that is more compatible with wpforo that will achieve this more seamlessly so the user who just register doesn't come to a blank screen?Β Β
Ideally the admin receives an email that someone has registered clicks a link that approves them. The user would then receive an email of approval and continues with the activation process within wpForo.Β Β
Thanks @Alvina,Β
The plugin you recommend works! π Which is exciting so many long hours and plugins I've tried... However the problem is the plugin you recommended ( https://wordpress.org/plugins/wp-approve-user/) is currently flagged because itΒ "hasnβt been tested with the latest 3 major releases of WordPress" of course not your problem.Β
Sooooo I went back to the https://wordpress.org/plugins/new-user-approve/ and found a workaround with the help of a dev friend to troubleshoot why this keeps happening. The "New-user-approve" plugin code looks for a "redirect_to" value with the registration data sent. Else it goes to > wp_safe_redirect( $_POST['redirect_to'] which doesn't work because I'm not using the WP login screen to fall back on.
Here's the New-User-approve plugin code in question that I believe is causing the blank screen issue found in their SVN file
if ( ! empty( $_POST['redirect_to'] ) ) { // if a redirect_to is set, honor it wp_safe_redirect( $_POST['redirect_to'] ); exit(); }
Since I'm using the WPForo registration form it only passes new user input value information it doesn't include a value for the redirect_to function that the plugin uses hence the user goes to a completely blank screen. (Side note: yes I tested the custom redirect in the settings wpforo however it still has the same blank screen result because the plugin is looking for the values for "redirect_to" from the form POST.Β Β
Solution aka "workaround" is to pass the redirect_to value through the form in a hidden html input field of the registration form with the redirect_to values included see example
<input type="hidden" id="custId" name="redirect_to" value="url of redirect page">Β
This of course requires the custom field addon to accomplish.Β
I'm not a dev but I was wondering if you all had any other thoughts on this other than this band aid fix?Β Β
Also I think this would be a great candidate for a future addon that just works with your plugin more seamlessly. It's important to give admins the ability to approve / deny new users first before allowing them to access the form.Β