Notifications
Clear all

wpForo 1.x.x [Closed] User Registration issues

5 Posts
2 Users
0 Reactions
744 Views
Posts: 3
Topic starter
(@bmorepun)
Active Member
Joined: 4 years ago

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Β 

4 Replies
Alvina
Posts: 1862
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @bmorepun,

Please navigate to the Dashboard > Forums > Settings > Members admin page and make sure these fields are empty:

https://www.screencast.com/t/TzpUw4FjOuvv

Posts: 3
Topic starter
(@bmorepun)
Active Member
Joined: 4 years ago

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.Β Β 

1 Reply
Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1862

@bmorepun,

Please note the user registration is being processed through the default WordPress registration system.

Once approved then the user is granted access to the forum.Β  I'm currently using the "New User Approve" plugin. Is there a plugin that is more compatible with wpforo

Please try the following one, it should work for wpForo too: https://wordpress.org/plugins/wp-approve-user/

Posts: 3
Topic starter
(@bmorepun)
Active Member
Joined: 4 years ago

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.Β