Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Email addess ID is unavaliable… new user
Tagged: complete registration, eMember registration issue, eMember Troubleshooting, problem completing registration, problem upgrading, registration email
- This topic has 13 replies, 4 voices, and was last updated 12 years, 6 months ago by Evan.
-
AuthorPosts
-
December 15, 2009 at 12:16 am #558stbarrettMember
I’m getting the following error when trying to ‘complete’ a registration after purchasing a subscription, getting the ‘complete registration’ email and clicking on the link to fill out my information.
This email ID is unavailable!
Registration Failed!
You can try it here on our test site. Note this site is pointing to the paypal sandbox site for testing purposes. Also note, we are using your eStore product for this.
http://wdwradio.stbarrett.com/member/join
Signup by hitting “Buy Now”, go through the paypal process and when you receive your “Complete your registration” email, click the link and try and submit the form after filling it out. I did not modify the email address in the form.
Thanks,
-scott
December 15, 2009 at 4:11 am #16723amin007ParticipantPlease bear in mind that with the addition of the “WordPress user integration” feature that lets you integrate the members of eMember witht wordpress users. Basically if you use this feature then the plugin will automatically create a new wordpress user with the same credentials when a new member is registered with eMember. This way the members only have one set of login credentials. Some people like to use this feature some don’t. I personally don’t like it cause I don’t want my members to be a user of my WordPress installation too… I like to keep them separate.
With that said, WordPress requires the members to have unique email and username. So we had to make the system to not accept emails or usernames that have already been taken.
Can you please verify by looking at your members list from the “members” menu of the plugin to make sure that the email address you are using is not already being used by one of the existing members? Because you are using sandbox testing, I have a feeling that you have already ran this once so that email is already registered in the system.
December 15, 2009 at 4:54 am #16724stbarrettMemberVerified the user I’m testing with does not currently exist in either member list. The email address for my sandbox account is:
stb_1258529892_per@stbarrett.com
Please view the links below, these are screenshots of my eMember members list and my WordPress members list which shows the user does not currently exist. I do not have the “integrate with wordpress members” turned on because I too wish to keep these users very seperate.
http://stbarrett.com/help/wp_emember.png
http://stbarrett.com/help/wp_users.png
so when I purchase the account, my test user shows up under the emember members list without a username. The email generated to the test user has the “register” link which is here:
http://wdwradio.stbarrett.com/member/register/
but it also includes the query variables for member_id and “code”. The form is filled out with my information. I enter a username and password and get the error message. It is almost like it doesn’t recognize I’m a new member trying to finish the registration process..
Would it matter if I’m trying to finish the registration process while currently logged into the wordpress system as an admin? I would assume not.
Thanks Amin,
-stb
December 15, 2009 at 4:56 am #16725stbarrettMemberLet me add, I’ve also physically looked at the wp_users table and wp_wp_eMember_members_tbl table and the email address does not exist, I see the same data that shows in the screenshots from my previous post.
The only place that email shows up is in the eStore Customer table. Could this be the issue?
December 15, 2009 at 7:53 am #16726amin007ParticipantThe only place that email shows up is in the eStore Customer table. Could this be the issue?
– NoLets try to address this step by step…
I just visited the following URL and was able to sign up for an account (I guess you have free membership turned on?)
http://wdwradio.stbarrett.com/member/register/
I noticed a few things that are odd:
1) The “Membership” field doesn’t have any value? This is not right as it should state the membership level name.
2) Clicking on some links on your site brings up a lightbox thing but it hangs in the middle. Not sure what sort of plugins you are using but this behavior doesn’t seem right and can cause other JQuery related issues.
3) Your site seem to be taking too long to load a page (Is it just me or this is normal?)
Anyway, can you please post a link to the page where you have your payments button so I can do a purchase and see how that goes. The only thing with sandbox purchase is that the sandbox email is not a real email so when the plugin sends the email with the unique link to complete the registration I won’t get it. Maybe you can create a $0.01 “Buy Now” button and hook it to a membership level so I can test it live?
December 15, 2009 at 9:55 am #16727stbarrettMemberYes, free membership was turned on and I see your signup, which I have removed. Not sure how this field on the form gets populated, but I do see it populated when I try and complete a purchased membership from the ‘finish’ email. At my clients request, I have turned off the free membership for the time being.
payment button is here with $0.01 attached to my live paypal account:
http://wdwradio.stbarrett.com/member/join
site being slow — I’ve not noticed it being slow, though I do have caching turned off at the moment and it loads in some data from external resources, so if they are down or slow, at the moment it hinders this site. Clicking on links to bring up light boxes should not be happening. There should not be any specific links that are suppose to lightbox. This I’ll have to test for, but have not seen happen while on the site the last few weeks, thank you for reporting.
I was poking around the code to get a good understanding of how all of this is working (sorry, I’m a developer, I cannot help it ;-P )
In the misc functions while building the reg form, you check to see if the email from the posted form exists in the database and if it does, you error out, and of course the email exists in the db after purchase so it should error out when trying to submit the registration form to finish the process. It never gets to that else condition where it pulls in the user object and updates it. Obviously I’m doing a very cursory look at your overall application and I apologize if I’m being forward. Just trying to solve my issue.
Again, thank you so much for your help.
Here is an image of the form I see after purchasing the subscription and following the link in the generated email:
http://stbarrett.com/help/wp_reg.png
-scott
December 15, 2009 at 11:49 am #16728amin007ParticipantThanks for the info.. this issue can’t be that hard to track… most things seem to be working. I have asked the co-developer of this plugin to take a look at it. Lets see if he can give any insight.
I like customers who are developers… it’s a lot easier to deal with them as they understand the situation and try to help in addressing the issue rather than blaming everything on me
December 15, 2009 at 12:00 pm #16729amin007ParticipantYep, I just realized that I needed to update the eStore plugin (the eMember integration part) so it does’t put the email in the database after the purchase. This is necessary now that the WordPress user integration feature has been implemented in eMember.
I have sent you an updated version of the eStore plugin which should resolve this issue. I couldn’t fully test this fix as it’s pretty late and am going to bed… I just wanted to give you something so you can keep working on your project. Let me know how you go.
December 15, 2009 at 3:40 pm #16730stbarrettMemberI’ll play with your update some today. Your help and responses is why I’m glad I purchased this product and my agency will recommend using them going forward. Wonderful support goes a long way. I’m also glad I did not offend you poking in your code, I’ve come across so many developers who get offended and down right rude when I start poking in code just looking for a solution.
Amin, you are awesome, thank you again.
December 19, 2009 at 10:01 pm #16731jgadboisMemberI think I have a related problem. I have “Automatically Create WordPress User:” checked off, but I do not get a wordpress user when someone signs up for an account. I do get an entry in the emember database table, but not in the wp_table. I have some other code and plugins that rely on the wordpress user so need this to work. Could I have something configured incorrectly, or is this a bug?
Thanks!
December 19, 2009 at 10:16 pm #16732jgadboisMemberSome additional information…i looked in the wp_options table and eMember_create_wp_user is set to 1
December 19, 2009 at 10:34 pm #16733jgadboisMemberOk…yet one more update. I think I fixed the problem by editing the following code in eMember_misc_functions.php at around line 147.
$wp_user_id = username_exists($fields['user_name']);
if($wp_user_id)
{
$wp_user_info = array();
$wp_user_info['user_nicename'] = $_POST['user_name'];
$wp_user_info['display_name'] = $_POST['user_name'];
$wp_user_info['nickname'] = $_POST['user_name'];
$wp_user_info['user_email'] = $_POST['aemail'];
$wp_user_info['user_pass'] = $_POST['pwd'];
$wp_user_info['ID'] = $wp_user_id;
wp_update_user( $wp_user_info );
}
else
{
$should_create_wp_user = get_option('eMember_create_wp_user');
if($should_create_wp_user)
{
$wp_user_info = array();
$wp_user_info['user_nicename'] = $_POST['user_name'];
$wp_user_info['display_name'] = $_POST['user_name'];
$wp_user_info['nickname'] = $_POST['user_name'];
$wp_user_info['first_name'] = $_POST['afirstname'];
$wp_user_info['last_name'] = $_POST['alastname'];
$wp_user_id = wp_create_user($_POST['user_name'], $_POST['pwd'], $_POST['aemail']);
$wp_user_info['ID'] = $wp_user_id;
wp_update_user( $wp_user_info );
}
}December 20, 2009 at 12:16 am #16734amin007ParticipantHmmm… what version of the plugin are you using?
May 9, 2012 at 9:09 pm #16735EvanMemberWoohoo! I posted, then deleted my original inquiry because I had the same problem, but I was able to solve the problem by changing my primary PayPal email to a different email than my Admin email. Now I did a test purchase and didn’t have any problems with registration. All the auto-redirects worked perfectly, forwarding me to the right upsell page after the first purchase, and the right thank you page after the second purchase. Best of all: when I purchased the upgrade (from the one-time-only offer page) the plugin automatcially upgraded my membership level. Presto! Perfecto! Love these plugins.
-
AuthorPosts
- You must be logged in to reply to this topic.