[#1909] ajax email wont stop - Admin cannot edit

13 years 8 months ago #139265 by krileon
Replied by krileon on topic Re:ajax email wont stop - Admin cannot edit
We were able to duplicate your issue specific to scenarios. Such as the middle letter of an email address being capitalized failing, etc.. We'll be looking to address this issue further. Please try using a custom PERL expression as this should resolve it. You may need to append the "i" modifier to remove case sensitivity. Example as follows.

[code:1]
/^.*$/i
[/code:1]

Some have reported you may need to use double escaping for the regex to work. If the above fails please try the following (probably due to stripslashes if it's applied).

[code:1]
//^.*$//i
[/code:1]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 8 months ago #139348 by mdyrhaug
Replied by mdyrhaug on topic Re:ajax email wont stop - Admin cannot edit
I didn't have much luck with these or other RegEx.

I have a feeling that the error is coming from Joomla, it specifically says "Email : This is not a valid email address.". I don't think this is a Community Builder error. I could be wrong on this.

I just don't know where in Joomla 1.5.20 this would be configured. Something somewhere is requiring the input to be a well-formed lowercase email address.

This happens for both types: "primaryemailaddress" and also "emailaddress".

Please Log in to join the conversation.

13 years 8 months ago #139365 by krileon
Replied by krileon on topic Re:ajax email wont stop - Admin cannot edit
Doesn't seam likely. Error is probably coming from the function cbIsValidEmail which performs a regex on the email to help validate it. Will review the regex and see if there is a problem.

*Update*
Was able to confirm a problem with the REGEX. Have updated the bug ticket with a fix to be applied with next release. Alternatively you can apply the quick fix your self.

IN: administrator/components/com_comprofiler/comprofiler.class.php
ON: Line 26
FROM:
[code:1]
define( "_UE_PREGMATCH_VALID_EMAIL", "/[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/" );
[/code:1]
TO:
[code:1]
define( "_UE_PREGMATCH_VALID_EMAIL", "/[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i" );
[/code:1]
OR:
[code:1]
define( "_UE_PREGMATCH_VALID_EMAIL", "/[a-zA-Z0-9!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/" );
[/code:1]

#1909

Post edited by: krileon, at: 2010/08/04 16:07


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 8 months ago #139423 by mdyrhaug
Replied by mdyrhaug on topic Re:ajax email wont stop - Admin cannot edit
Worked like a charm!

Thanks for your time and effort!

-Mark

Please Log in to join the conversation.

13 years 7 months ago #142606 by ozswisssurf
Replied by ozswisssurf on topic Re:[#1909] ajax email wont stop - Admin cannot edit
Hi

I've applied both provided patch codes but now I am not able to update any data in comprofiler because he claims "e-Mail Address: Wrong e-mail address"

Any help?
Mark

Please Log in to join the conversation.

13 years 6 months ago #142848 by jgentles
Replied by jgentles on topic Re:ajax email wont stop - Admin cannot edit
I tried both codes also and I am still getting the error "this is not a valid email address" even then it is. Are there any other options I can try? Thank you in advanced.


Janice

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.336 seconds

Facebook Twitter LinkedIn