Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ***
like image 294
zachar Avatar asked Oct 15 '12 11:10

zachar


2 Answers

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

like image 162
mr.baby123 Avatar answered Oct 28 '22 21:10

mr.baby123


On debian, install the module php-mbstring

apt-get install php-mbstring

If necessary restart apache2

service apache2 restart
like image 35
Roberto Torresani Avatar answered Oct 28 '22 23:10

Roberto Torresani