Reputation: 5759
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
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
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