Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function mb_strtolower()

i have a vps server i installed nginx + php-fpm now i have a problem with mb_strtolower() function this is my php info pleas goto this adress to see my php info

http://207.182.153.237/test.php

how to fix this error?

like image 523
user3118199 Avatar asked Jan 12 '14 10:01

user3118199


3 Answers

You need to install the PHP multibyte extension ("mbstring") as described here.

like image 89
Phil Rykoff Avatar answered Nov 11 '22 21:11

Phil Rykoff


Search in your php.ini for this line:

;zend.multibyte = Off

And change it to:

zend.multibyte = On
like image 3
tjati Avatar answered Nov 11 '22 19:11

tjati


Building on the answers from Phil Rykoff and omeinusch: this is my configure line to build php from source to support reportico 3.2 on php 5.4.43 / Centos 7.1.1503

/configure --with-apxs2=/opt2/canal/apache/bin/apxs --with-mysql
--with-pdo-mysql --prefix=/opt2/canal/php --enable-mbstring --with-gd

--enable-mbstring is pertinent to this question.
(--with-gd required from image handling (also needed yum install libpng-devel to avoid missing png.h message))

Then needed to set the following in php.ini:

zend.multibyte = On
like image 1
mikemay Avatar answered Nov 11 '22 19:11

mikemay