14

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?

user3118199
  • 197
  • 1
  • 2
  • 8
  • 1
    First step would be posting `test.php` here... Besides, please do not link to random external websites, rather, cut the exact error message and paste it here. Thanks. – Stefano Sanfilippo Jan 12 '14 at 10:50
  • error : Fatal error: Call to undefined function mb_strtolower() in /usr/share/nginx/chatern.com/fm.php on line 2487 – user3118199 Jan 12 '14 at 10:55

4 Answers4

20

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

Phil Rykoff
  • 11,999
  • 3
  • 39
  • 63
4

Search in your php.ini for this line:

;zend.multibyte = Off

And change it to:

zend.multibyte = On
tjati
  • 5,761
  • 4
  • 41
  • 56
1

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
mikemay
  • 3,707
  • 6
  • 34
  • 35
1

If you're using cPanel hosting, you can go to PHP Selector and check the "mbstring" feature. It worked for me.