f_society
@f_society
по граблям новичка

Yii2 — как загрузить на хостинг?

загрузил на хостинг yii2. базу настроил. выходит такая ошибка
PHP Fatal Error – yii\base\ErrorException
Call to undefined function yii\helpers\mb_strlen()

    1. in /home/laffkauz/public_html/vendor/yiisoft/yii2/helpers/BaseStringHelper.php at line 31
    22232425262728293031323334353637383940

                        {
        /**
         * Returns the number of bytes in the given string.
         * This method ensures the string is treated as a byte array by using `mb_strlen()`.
         * @param string $string the string being measured for length
         * @return int the number of bytes in the given string.
         */
        public static function byteLength($string)
        {
            return mb_strlen($string, '8bit');
        }
     
        /**
         * Returns the portion of string specified by the start and length parameters.
         * This method ensures the string is treated as a byte array by using `mb_substr()`.
         * @param string $string the input string. Must be one character or longer.
         * @param int $start the starting position
         * @param int $length the desired portion length. If not specified or `null`, there will be
         * no limit on length i.e. the output will be until the end of the string.
                    

    2. yii\base\ErrorHandler::handleFatalError()
  • Вопрос задан
  • 141 просмотр
Пригласить эксперта
Ответы на вопрос 2
Включите модуль на хостинге mbstring
Ответ написан
webinar
@webinar Куратор тега Yii
Учим yii: https://youtu.be/-WRMlGHLgRg
А что конкретно в фразе
Call to undefined function mb_strlen()

Вам не ясно? Как иначе сформулировать, что бы Вы поняли, что отсутствует функция mb_strlen?
"Вызвана не объявленная (не существующая) функция 'название функции'" - как иначе можно это интерпретировать?
И что остановило Вас вбить ошибку в гугл и найти 2000000000 решений?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы