【问题标题】:Laravel 5 : Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding()Laravel 5:调用未定义的函数 Illuminate\Foundation\Bootstrap\mb_internal_encoding()
【发布时间】:2017-08-27 03:52:37
【问题描述】:

我正在使用https://github.com/bestmomo/laravel5-example 并且只是克隆了它。但我收到了这条消息。到处谷歌,但没有结果。也许有人遇到过这种情况?我是L5的新手

【问题讨论】:

  • 我注释掉了代码:mb_internal_encoding('UTF-8');在 BootStrap\LoadConfiguration.php 中,该站点正常工作。但我认为仍然不是一个好的解决方案
  • 对于 CentOS 7 上的 Laravel 5,请参阅我对另一个 post 的回答。

标签: php laravel


【解决方案1】:

遇到了同样的问题,解决方法是启用mbstring php扩展: https://laracasts.com/discuss/channels/general-discussion/call-to-undefined-function

就我而言 (AMPPS),我必须禁用并重新启用它 + apache 重启。

【讨论】:

  • +1 用于提到在 AMPPS 中禁用和重新启用它......有同样的问题,并且做到了 - 现在工作正常。
猜你喜欢
  • 2018-06-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-23
  • 2014-04-17
  • 2016-01-22
相关资源
最近更新 更多