Karthik
Karthik

Reputation: 5759

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

Upvotes: 5

Views: 17778

Answers (3)

Gerd
Gerd

Reputation: 21

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

Upvotes: 1

Rohan Jalil
Rohan Jalil

Reputation: 41

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

Upvotes: 2

Manish
Manish

Reputation: 3643

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.

Upvotes: 3

Related Questions