When installing Yii, open Web page displays Mb_strlen () error,

Source: Internet
Author: User
Display: Call to undefined function Yii\helpers\mb_strlen ()

    1. PHP.ini in Mb_string has been opened, with the php-m display is open

    2. Should not be an extension library path issue, because mysqli is not a problem to use.

Now puzzled there apart from the problem!

PS: The same URL, why Firefox can display PHP page, chrome directly download this page?

页面就一个ECHO而已。

Reply content:

Display: Call to undefined function Yii\helpers\mb_strlen ()

    1. PHP.ini in Mb_string has been opened, with the php-m display is open

    2. Should not be an extension library path issue, because mysqli is not a problem to use.

Now puzzled there apart from the problem!

PS: The same URL, why Firefox can display PHP page, chrome directly download this page?

页面就一个ECHO而已。

See if this function is disabled in php.ini.

Call to undefined function yii\helpers\mb_strlen()从这句可以看出你没有使用扩展提供的函数,而是默认试用了yii框架提供的,没认真用过yii,建议排查下。关于页面下载的问题,这一般都是服务器配置问题。如果你的Webserver是Nginx,那就要配置fastcgi项,具体请Google,不做赘述。
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.