Dont work with WordPress 4.0
-
I am using the email as username, but registration dont work ( I get message: ERROR: Please enter your user name.
-
Same here.
same here
and here
I am having problems in WP4.0 where the ‘Unverified Users’ are left in the unverified group display after they have had their role updated to subscriber or something else. This should be cleaned up and empty after all new registrants are verified and roles changed.
Apparently, WordPress changed how the errors are accessed and made the member arrays private. As such, what used to work in removing the username error doesn’t any more.
However, there is a hack I came up with – plugin code editing required:
Edit the plugin file rpr-login.php
Find the line (Line 374?):if ( is_array( $errors->errors ) && isset( errors->errors['empty_username'] ) ) unset( $errors->errors['empty_username'] );Add below it with:
if ( is_array( $errors->errors ) && isset( $errors->errors['empty_username'] ) ) { $temp = $errors->errors; unset( $temp['empty_username'] ); $errors->errors = $temp; }It’s a hacky way to fix the issue. It may not work properly under all circumstances.
I’ve also discovered that after account verification, no further emails appear to be sent – such as a successful registration or email containig the password.
Use at your own risk!
I see the problem, WordPress 4.0 finally started using access modifiers, moving from var statements to public/private. Previously, the errors array had been inadvertently public. Fortunately, they added a __unset function to the WP_Errors class, so that needs to be coded into Redux. The problem is that previous versions of WordPress did not have this function, so the code will need to wrap the unsetter in a function check. Expect some code shortly.
FYI: The problematic changeset, https://core.trac.ww.wp.xz.cn/ticket/22234
@radiok do you plan to update RegisterPlus ? Currently and because i am not at all programmer, I had to stop registrations.
Maybe it is time to get some benefits of your good work and charge for a “pro” version and I am more than agree to pay (a little for that!) ?
bernardI have reopened a ticket, https://core.trac.ww.wp.xz.cn/ticket/28092, in Trac to get a true WP_Error remove function added. In the meantime, I will add the solution iheggaton wrote up.
I just resolved the Email Address as Username errors many of you have been experiencing with the 3.9.11 release, I will look into Unverified Users and failed emails shortly.
Thanks for your prompt update!
Just FYI,
I am using your plugin with WP-Mail-SMTP and I can send/receive verification/password emails without any problem.
WP: 4.0
register-plus-redux: 3.9.11
WP-Mail-SMTP: 0.9.5please radiok find a solution without adding another plugin π π
I don’t want to add wp-smtp for that
thanks a lot for your update !
The topic ‘Dont work with WordPress 4.0’ is closed to new replies.