Call to undefined function FOS\UserBundle\Util\mb_convert_case()

zachar picture zachar · Oct 15, 2012 · Viewed 8.1k times · Source

I'm getting error

Call to undefined function FOS\UserBundle\Util\mb_convert_case() app_path/vendor/bundles/FOS/UserBundle/Util/Canonicalizer.php on line 18

It occurs when I try to load fixtures.

First step was to install mbstring.so ext, so I compiled php with

--enable-mbstring

than successfully copiled mbstring ext

phpize
./configure
make
make install

and added

extension=mbstring.so

to my php.ini file. Unfortunately I still got that error and php -m doesn't display mbstring as loaded extension. What's wrong?

Any help will be greatly appreciated.

PHP 5.4.7, Debian Lenny

from php check.php output

[[WARNING]] Checking that the mb_strlen() function is available: FAILED
            *** Install and enable the mbstring extension ***

Answer

mr.baby123 picture mr.baby123 · May 4, 2015

on CentOS, for example, you will need to install this php module:

yum install php-mbstring

as written on https://stackoverflow.com/a/1216284/2071028