Fatal error: Call to undefined function mb_strlen()

前端 未结 8 1815
死守一世寂寞
死守一世寂寞 2020-12-01 10:19

I\'m trying to make a donation center which I use the source code from Totorialzine.

Everything works fine for me at this moment so far but the only problem I was st

相关标签:
8条回答
  • 2020-12-01 10:31

    On Centos, RedHat, Fedora and other yum-my systems it is much simpler than the PHP manual suggests:

    yum install php-mbstring
    service httpd restart
    
    0 讨论(0)
  • 2020-12-01 10:34

    The function mb_strlen() is not enabled by default in PHP. Please read the manual for installation details:

    http://www.php.net/manual/en/mbstring.installation.php

    0 讨论(0)
  • 2020-12-01 10:46

    PHP 7.2 Ubuntu 18.04

    sudo apt install php-mbstring
    
    0 讨论(0)
  • 2020-12-01 10:47

    To fix this install the php7.0-mbstring package:

    sudo apt install php7.0-mbstring
    
    0 讨论(0)
  • 2020-12-01 10:47

    For me, this worked in Ubuntu 14.04 and for php5.6:

    $ sudo apt-get install php5.6-mbstring
    
    0 讨论(0)
  • 2020-12-01 10:47

    In case Google search for this error

    Call to undefined function mb_ereg_match()
    

    takes somebody to this thread. Installing php-mbstring resolves it too.

    Ubuntu 18.04.1, PHP 7.2.10

    sudo apt-get install php7.2-mbstring
    
    0 讨论(0)
提交回复
热议问题