This problem occurs on the Alibaba Cloud server: Call to undefined function mb_strlen
mao
mao 2018-09-08 16:45:29
0
1
1221

Call to undefined function mb_strlen()

Error location

FILE: /www/ThinkPhp/Application/Common/Common/function.php LINE: 16

at There is no problem running in wnmp environment. This problem occurred when I uploaded the website to the Alibaba Cloud server and the environment was lnmp: centos6.8 nginx mysql5.7 php5.4.

Cause: The display page in the view folder under the thinkphp framework uses the custom function msubstr. This function calls mb_strlen, so this problem occurs.

I removed this function msubstr from the display page and it was fine.

I would like to ask if the extension module is not enabled under the centos system? I have tried all the methods mentioned on the internet but to no avail.


mao
mao

reply all (1)
秋香姐家的小书童

Check if there is a case problem

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!