Well hello everyone,
I've installed a fresh copy of Vanilla which is a lightweight forum.
But, I got a "Deprecated: Function eregi() is deprecated in C:\wamp\www\xfm\library\Framework\Framework.Class.Validator.php on line 93" when a user attempted to sign up.
So I went to find that function and found:
// Validate all defined variables
// Returns boolean value indicating un/successful validation
function Validate() {
// If a regexp was supplied, attempt to validate on it (empty strings allowed)
if($this->ValidationExpression != '' && $this->Value != '') {
if(!eregi($this->ValidationExpression, $this->Value)) {
$this->isValid = 0;
$this->Context->WarningCollector->Add($this->ValidationExpressionErrorMessage);
}
}
So what I did was change it to:
// Validate all defined variables
// Returns boolean value indicating un/successful validation
function Validate() {
// If a regexp was supplied, attempt to validate on it (empty strings allowed)
if($this->ValidationExpression != '' && $this->Value != '') {
if(!preg_match(/'$this->ValidationExpression/', $this->Value)) {
$this->isValid = 0;
$this->Context->WarningCollector->Add($this->ValidationExpressionErrorMessage);
}
}
I no longer get the error but, now the board gives a:
You did not supply a properly formatted value for email.
But the thing is the e-mail is valid, anyone know of a solution?