Mail address issues?

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
klilleng
TestLink user
Posts: 4
Joined: Mon Jun 15, 2009 8:23 am

Mail address issues?

Post by klilleng »

Running TL 1.8.3 (upgraded from 1.8.2). I have problems editing mail adresses of existing users, and also adding new users. "Email address format seems no good".

This is the event log output:

Code: Select all

30/06/2009 13:01:44	WARNING	E_NOTICE Undefined property: stdClass::$user_email_valid_regex_php - in C:\Inetpub\wwwroot\testlink\lib\functions\user.class.php - Line 459	admin 
30/06/2009 13:01:44	WARNING	E_WARNING preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Empty regular expression - in C:\Inetpub\wwwroot\testlink\lib\functions\user.class.php - Line 460	admin 
30/06/2009 13:01:41	WARNING	E_NOTICE Undefined property: stdClass::$user_email_valid_regex_js - in C:\Inetpub\wwwroot\testlink\gui\templates_c\%%D7^D75^D7581054%%usersEdit.tpl.php - Line 57	admin 
30/06/2009 13:01:41	WARNING	E_NOTICE Undefined property: stdClass::$user_email_valid_regex_js - in C:\Inetpub\wwwroot\testlink\gui\templates_c\%%B3^B39^B39DACD9%%inc_jsCfieldsValidation.tpl.php - Line 23
Anyone else experienced this?
silvercolt45
Advanced user
Posts: 33
Joined: Tue Jan 20, 2009 4:57 pm
Location: Las Vegas
Contact:

Me too

Post by silvercolt45 »

Yes, I am experiencing this same issue when upgrading from 1.8.2 to 1.8.3. Following are the events from the event log:

Code: Select all

E_NOTICE Undefined property: stdClass::$user_email_valid_regex_js - in /virtualhosts/testlink.qa.tss/www/gui/templates_c/%%D7^D75^D7581054%%usersEdit.tpl.php - Line 57

E_NOTICE Undefined property: stdClass::$user_email_valid_regex_js - in /virtualhosts/testlink.qa.tss/www/gui/templates_c/%%B3^B39^B39DACD9%%inc_jsCfieldsValidation.tpl.php - Line 23

E_WARNING preg_match(): Empty regular expression - in /virtualhosts/testlink.qa.tss/www/lib/functions/user.class.php - Line 460

E_NOTICE Undefined property: stdClass::$user_email_valid_regex_php - in /virtualhosts/testlink.qa.tss/www/lib/functions/user.class.php - Line 459
We are currently using LDAP configuration for our user authentication against MS Active Directory. Thank you in advance, I hope someone can help with this ASAP as we use testlink pretty heavily nowadays.
uhi
TestLink user
Posts: 9
Joined: Tue Feb 17, 2009 12:19 pm

Post by uhi »

I have the same problem after an upgrade from 1.8.1 to 1.8.3.
uhi
TestLink user
Posts: 9
Joined: Tue Feb 17, 2009 12:19 pm

old config.inc.php

Post by uhi »

That was my fault, I've used an old 1.8.2 config.inc.php without the new email expressions. With 1.8.3 config.inc.php email verification works fine again.
silvercolt45
Advanced user
Posts: 33
Joined: Tue Jan 20, 2009 4:57 pm
Location: Las Vegas
Contact:

Post by silvercolt45 »

uhi,

Could you please provide the expressions you are speaking of in the 1.8.3 config file that fixed this issue. I also am using a 1.8.2 config file due to the number of changes made. Did you simply take the lines of code from the 1.8.3 config and placed them into your 1.8.2 config file?

Thank you for any help in this matter!
uhi
TestLink user
Posts: 9
Joined: Tue Feb 17, 2009 12:19 pm

Post by uhi »

silvercolt45 wrote:uhi,

Could you please provide the expressions you are speaking of in the 1.8.3 config file that fixed this issue. I also am using a 1.8.2 config file due to the number of changes made. Did you simply take the lines of code from the 1.8.3 config and placed them into your 1.8.2 config file?

Thank you for any help in this matter!
I updated from 1.8.1 to 1.8.3 (not from 1.8.2, that was wrongly mentioned in my last post!).
Here the expression that solved my problem:
/* Taken from Ext-js VTypes.js */
$tlCfg->validation_cfg->user_email_valid_regex_js = "/^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/";
$tlCfg->validation_cfg->user_email_valid_regex_php = "/^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/U";

Hope this helps!
silvercolt45
Advanced user
Posts: 33
Joined: Tue Jan 20, 2009 4:57 pm
Location: Las Vegas
Contact:

Post by silvercolt45 »

Perfect! thank you, works great.
Locked