Here’s the problem line from
./core/components/formit/model/formit/fivalidator.class.php
$condition = $this->config['use_multibyte'] ? @mb_ereg($pattern,$value) : @ereg($pattern, $value);
By printing out all defined functions, I can see that the
mg_ereg function is not defined!
print_r(get_defined_functions());
This has got to be some glitch with my PHP setup. As the system setting says:
Set to true if you want to use the mbstring extension for multibyte characters in your MODx installation. Only set to true if you have the mbstring PHP extension installed.
But I DO have that compiled into PHP:
print_r(get_loaded_extensions());
Lists the following:
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => sqlite3
[7] => zlib
[8] => bcmath
[9] => calendar
[10] => ctype
[11] => curl
[12] => dom
[13] => hash
[14] => filter
[15] => ftp
[16] => gd
[17] => gettext
[18] => SPL
[19] => session
[20] => json
[21] => mbstring
[22] => mcrypt
[23] => mysql
[24] => mysqli
[25] => standard
[26] => Phar
[27] => posix
[28] => Reflection
[29] => imap
[30] => SimpleXML
[31] => sockets
[32] => exif
[33] => tokenizer
[34] => xml
[35] => xmlreader
[36] => xmlwriter
[37] => zip
[38] => cgi-fcgi
[39] => PDO
[40] => SQLite
[41] => pdo_mysql
[42] => pdo_sqlite
[43] => ionCube Loader
[44] => eAccelerator
)
What gives? Is that a bad message? Which package provides the
mg_ereg function?
The Login snippets should check for that function!