Call to undefined function mb_strlen()
錯誤位置
FILE: /www/ThinkPhp/Application/Common/Common/function.php LINE: 16
在wnmp環(huán)境中運行沒有問題。把網(wǎng)站上傳到阿里云服務器上,環(huán)境為lnmp:centos6.8 +nginx+mysql5.7+php5.4就出現(xiàn)這個問題了。
原因:在thinkphp框架下的view文件夾中的展示頁面使用了自定義函數(shù)msubstr,這個函數(shù)調(diào)用了mb_strlen,所以會出現(xiàn)這個問題。
我在展示頁面把這個函數(shù)msubstr去掉了就沒事了。
請問是不是centos系統(tǒng)下,擴展模塊沒開?按照網(wǎng)上說的方法都試了也沒有解決。