调用未定义的函数 Symfony\Polyfill\Mbstring\iconv_strpos() 错误 laravel 5.4

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44064479/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 15:59:57  来源:igfitidea点击:

Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() error laravel 5.4

laravelcpanellaravel-5.4

提问by Brian Ruchiadi

I am uploading a laravel 5.4 project to cpanel server. And i am serve with

我正在将 laravel 5.4 项目上传到 cpanel 服务器。我服务于

PHP Fatal error:  Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos()

on server.

在服务器上。

I have done

我已经做好了

composer require symfony/polyfill-iconv

However, it does not change the error message. What thing i might miss out?

但是,它不会更改错误消息。我可能会错过什么?

回答by Bogdan Stoica

Be sure that you have php-iconv and php-mbstring installed on the server. Then check again. By default, mbstring is not installed on cPanel/WHM servers

确保您在服务器上安装了 php-iconv 和 php-mbstring。然后再检查。默认情况下,mbstring 未安装在 cPanel/WHM 服务器上