Validation min_length and max_length issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Validation min_length and max_length issue (/showthread.php?tid=67827) |
Validation min_length and max_length issue - nskarl - 04-14-2017 Hi all! \Config\Validation.php PHP Code: public $validateForm = [ Controller: $this->validation->run($this->request->getPost(), 'validateForm'); Error: Call to undefined function CodeIgniter\Validation\mb_strlen() BASEPATH/Validation/Rules.php at line 259 same error if use max_length RE: Validation min_length and max_length issue - Martin7483 - 04-14-2017 Looks like you are running a PHP version that does not have the mb_strlen() function available RE: Validation min_length and max_length issue - nskarl - 04-14-2017 thanks for answer PHP Version 7.0.18-1+deb.sury.org~trusty+1 Apache Version Apache/2.4.7 (Ubuntu) RE: Validation min_length and max_length issue - Martin7483 - 04-14-2017 Are you sure mb_strlen() has been enabled? You can check by using phpinfo() RE: Validation min_length and max_length issue - nskarl - 04-14-2017 yep, it looks like it's not enabled, no info about mb_ in phpinfo thanks for help, man! |