Page 1 of 1

ampersand in member's name

PostPosted: July 24th, 2011, 1:43 pm
by armandminnie
The site is being used to manage club membership where most members are couples. The directory was imported and lots of the first names contain ampersands (e.g. Bob & Carol). The ampersand shows up correctly in most places but when the member goes to update their profile the ampersand shows as &. They can change the & to just & but on redisplay it returns to the old display.

Re: ampersand in member's name

PostPosted: July 26th, 2011, 12:00 am
by Cristián Lávaque
Hi Armand. Could you tell me what version of WordPress and s2Member you're using?

Re: ampersand in member's name

PostPosted: July 26th, 2011, 8:00 am
by armandminnie
Wordpress 3.2.1 and s2Member 110710

Re: ampersand in member's name

PostPosted: July 27th, 2011, 12:05 am
by Cristián Lávaque
Thanks. I have those versions in my test installation and wasn't able to create a user with the name "Bob & Carol" as in your example, I got this error:

ERROR: This username is invalid because it uses illegal characters. Please enter a valid username.

How did you import the users to your website?

Re: ampersand in member's name

PostPosted: July 27th, 2011, 8:09 am
by armandminnie
I imported the files using a .csv file and the S2memberPro import function. The field is enclosed in quotes as required - "Bob & Carol". I also just tested adding a new member using the & character with no problems. Any of the existing members can be updated using the & but it when using the "update my profile" it shows incorrectly. Otherwise no problems using the &.

Re: ampersand in member's name

PostPosted: July 27th, 2011, 2:28 pm
by Cristián Lávaque
Oh, wait, you mean the First Name field? I had tested the Username field. The username doesn't let me use an ampersand, but the First Name does, the profile edit page displays and saves it correctly in my installation.

Could you, as a test, disable other plugins until you're left with s2Member only, and see if the problem goes away?

Re: ampersand in member's name

PostPosted: July 27th, 2011, 3:53 pm
by armandminnie
The only plugin that could be involved and I can easily disable is WP Super Edit and disabling it has no effect. If I use the WP standard profile update I do not have the problem. The problem occurs when I use the S2member login widget though.

Re: ampersand in member's name

PostPosted: July 27th, 2011, 5:06 pm
by Cristián Lávaque
Oooh, you mean the profile form s2Member provides? Got it. I was able to reproduce it now. I'm letting Jason know about this right now. Thank you!

Re: ampersand in member's name

PostPosted: July 27th, 2011, 6:31 pm
by armandminnie
Thanks - sorry I wasn't more specific earlier.

Re: ampersand in member's name

PostPosted: July 27th, 2011, 10:47 pm
by Cristián Lávaque
No problem. :)

Re: ampersand in member's name

PostPosted: August 2nd, 2011, 8:12 pm
by Jason Caldwell
armandminnie wrote:The site is being used to manage club membership where most members are couples. The directory was imported and lots of the first names contain ampersands (e.g. Bob & Carol). The ampersand shows up correctly in most places but when the member goes to update their profile the ampersand shows as &. They can change the & to just & but on redisplay it returns to the old display.

Thank you. Investigating now.

Re: ampersand in member's name

PostPosted: August 2nd, 2011, 9:13 pm
by Jason Caldwell
Thanks for reporting this important issue.
This is indeed a bug within s2Member's handling of the input field. A fix for this issue is being applied for the next releases of both s2Member and s2Member Pro which will automatically correct this problem for all current and future accounts that are established under an installation of s2Member. The next release should be available very soon. Thanks for your patience in this matter.

Re: ampersand in member's name

PostPosted: August 21st, 2011, 11:30 am
by Jason Caldwell
Jason Caldwell wrote:Thanks for reporting this important issue.
This is indeed a bug within s2Member's handling of the input field. A fix for this issue is being applied for the next releases of both s2Member and s2Member Pro which will automatically correct this problem for all current and future accounts that are established under an installation of s2Member. The next release should be available very soon. Thanks for your patience in this matter.

This has been corrected in the release of s2Member v110815+.