Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Fix Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() Issue

I uploaded my Laravel project to server. It displays following error. How to fix it?

Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() in /home/invoice/vendor/symfony/polyfill-mbstring/Mbstring.php on line 358

like image 266
Karthik Avatar asked Feb 21 '17 07:02

Karthik


3 Answers

Did you install iconv PHP extension. If not please install and enable it. This may fix your problem. Please see the Documentation. Here is the Link.

like image 157
Manish Avatar answered Nov 17 '22 18:11

Manish


You need to install iconv extension.

You need to make sure that php-iconv and php-mbstring are installed on the server. By default, mbstring is not installed on cPanel/WHM servers

Easiest way is composer require symfony/polyfill-iconv

like image 22
Rohan Jalil Avatar answered Nov 17 '22 18:11

Rohan Jalil


You need the polyfill package. You can download the polyfill package with composer or you go on this site and download it without composer.

like image 1
Gerd Avatar answered Nov 17 '22 18:11

Gerd