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".
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.
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.
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?
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";