Hello!
I have the problem with validation one rule.
In Validate Data action i set some rules on list Fields setup:
Many thanks for answer
I have the problem with validation one rule.
In Validate Data action i set some rules on list Fields setup:
text28/is_integer:{error:Error! wrong type of field value.} //it worksThe last rule gives the error " Call to undefined method G2\L\Validate::regExp[()". What wrong is? Or i can't use validation rules in this field?
med1/is_integer:{error:Error! wrong type of field value.} // it works
med2/is_integer:{error:Error! wrong type of field value.} // it works
med3/is_integer:{error:Error! wrong type of field value.} // it works
med4/is_integer:{error:Error! wrong type of field value.} // it works
curip/regExp[/([0-9]{1,3}[\.]){3}[0-9]{1,3}/]:{error:Error! wrong type of field value.} // i have error here
Many thanks for answer
try curip/regex instead
As far as I can tell it's a bug, the closest I can get it tells me "Too few arguments to function G2/L/Validate::regex(), 1 passed blahblahblah" I don't know how to make it pass two arguments or why it should need to.
I'd suggest use the Contact link and sending the developer an email. If he replies to you, post the response here🙂 Or make a post in the Bug forum
I'd suggest use the Contact link and sending the developer an email. If he replies to you, post the response here🙂 Or make a post in the Bug forum
I got the same error, but the rule with "regExp" (with other expression and other field of rules) is working.
Besides i tryed to use the some other rules (in settings of other elements ) - they are not working too (alpha, alphanumeric and so on). Then i used rules with "regExp" and it worked there.
But here, in "Fields setup" of Validate Data action this rule doesn't work again.
I don't know yet, is it a bug or not. Maybe i did something wrong. Or can't use thire rules here.
Besides i tryed to use the some other rules (in settings of other elements ) - they are not working too (alpha, alphanumeric and so on). Then i used rules with "regExp" and it worked there.
But here, in "Fields setup" of Validate Data action this rule doesn't work again.
I don't know yet, is it a bug or not. Maybe i did something wrong. Or can't use thire rules here.
BUMP
Any word Max
Any word Max
BUMP come on man
Current investigation so far
Line 71 in cegcore2/libs/validate.php is where that is called as far as I can see. I tried a file_put_contents to log what those values were and they were both empty ($value and $regex) so who knows what's going on there.
A response would be nice, it has been two months.
regtest/regex/[/^[0-9]{3}$/]):Regex failedgives me
Too few arguments to function G2\L\Validate::regex(), 1 passed in /.../libraries/cegcore2/admin/extensions/chronofc/functions/validate_data/validate_data_output.php on line 22 and exactly 2 expected
Line 71 in cegcore2/libs/validate.php is where that is called as far as I can see. I tried a file_put_contents to log what those values were and they were both empty ($value and $regex) so who knows what's going on there.
A response would be nice, it has been two months.
BUMP
Still trying to figure it out. I've sent emails about it too. Maybe next year?
Still trying to figure it out. I've sent emails about it too. Maybe next year?
In libraries\cegcore2\admin\extensions\chronofc\functions\validate_data\valudate_data_output.php, line 22,
libraries\cegcore2\admin\extensions\chronofc\helpers\parser.php, line 928, doesn't have the code to get the value to be checked.
if((bool)\G2\L\Validate::$vfn(\G2\L\Arr::getVal($data, $field_data['name'], null)) !== true){Doesn't have a spot for the value to be passed.
libraries\cegcore2\admin\extensions\chronofc\helpers\parser.php, line 928, doesn't have the code to get the value to be checked.
I GOT IT!!!!!!
After months of not doing very much, and many hours of actual work, I figured it out. I'll send the information to the developer and see if he can update the code.
After months of not doing very much, and many hours of actual work, I figured it out. I'll send the information to the developer and see if he can update the code.
Hi,
The next update should have this issue fixed!
The syntax will be like this:
Best regards
The next update should have this issue fixed!
The syntax will be like this:
curip/regex[/([0-9]{1,3}[\.]){3}[0-9]{1,3}/]:Error! wrong type of field value.
Best regards
Yes it was updated in 6.0.22
i also made another post showing you all the validation options available
This topic is locked and no more replies can be posted.